[HELP] .isBlockPowered()

Discussion in 'Plugin Development' started by komes, Feb 2, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    komes

    What would the best way be to save a blocks location so that i can then reference it later.
     
  2. Offline

    Hohahihehu

    You could save it in a hashmap. Like:

    ConcurrentHashMap<Location, Boolean> PowerMap = new ConcurrentHashMap<Location, Boolean>(89)

    or something like that.

    There are tons of guides online of how to use Hashmaps/Hashtables/ConcurrentHashMaps
     
  3. Offline

    Dinnerbone Bukkit Team Member

    Just keep the handle to the block.
     
Thread Status:
Not open for further replies.

Share This Page