Package org.bukkit.block
Interface Lockable
-
- All Known Subinterfaces:
Barrel,Beacon,BlastFurnace,BrewingStand,Chest,Container,Dispenser,Dropper,Furnace,Hopper,ShulkerBox,Smoker
public interface LockableRepresents a block (usually a container) that may be locked. When a lock is active an item with a name corresponding to the key will be required to open this block.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetLock()Gets the key needed to access the container.booleanisLocked()Checks if the container has a valid (non empty) key.voidsetLock(String key)Sets the key required to access this container.
-