public interface ChestProtection
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAdjacentChestProtected(com.sk89q.worldedit.util.Location searchBlock,
LocalPlayer player)
Returns whether an adjacent chest is protected.
|
default boolean |
isChest(com.sk89q.worldedit.world.block.BlockType blockType)
Returns whether a blockType is a chest.
|
boolean |
isProtected(com.sk89q.worldedit.util.Location block,
LocalPlayer player)
Returns whether a block is protected.
|
boolean |
isProtectedPlacement(com.sk89q.worldedit.util.Location block,
LocalPlayer player)
Returns whether a location where a chest block is trying to be created
is protected.
|
boolean isProtected(com.sk89q.worldedit.util.Location block,
LocalPlayer player)
block - The block to checkplayer - The player to checkboolean isProtectedPlacement(com.sk89q.worldedit.util.Location block,
LocalPlayer player)
block - The block to checkplayer - The player to checkplayer can place a block at the specified blockboolean isAdjacentChestProtected(com.sk89q.worldedit.util.Location searchBlock,
LocalPlayer player)
searchBlock - The block to checkplayer - The player to checksearchBlock is protected from access by playerdefault boolean isChest(com.sk89q.worldedit.world.block.BlockType blockType)
blockType - The blockType to check