public interface ChestProtection
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAdjacentChestProtected(org.bukkit.block.Block searchBlock,
org.bukkit.entity.Player player)
Returns whether an adjacent chest is protected.
|
boolean |
isChest(int type)
Returns whether a material is a chest.
|
boolean |
isChest(org.bukkit.Material material)
Deprecated.
see
isChest(int) |
boolean |
isProtected(org.bukkit.block.Block block,
org.bukkit.entity.Player player)
Returns whether a block is protected.
|
boolean |
isProtectedPlacement(org.bukkit.block.Block block,
org.bukkit.entity.Player player)
Returns whether a location where a chest block is trying to be created
is protected.
|
boolean isProtected(org.bukkit.block.Block block,
org.bukkit.entity.Player player)
block - The block to checkplayer - The player to checkboolean isProtectedPlacement(org.bukkit.block.Block block,
org.bukkit.entity.Player player)
block - The block to checkplayer - The player to checkplayer can place a block at the specified blockboolean isAdjacentChestProtected(org.bukkit.block.Block searchBlock,
org.bukkit.entity.Player player)
searchBlock - The block to checkplayer - The player to checksearchBlock is protected from access by player@Deprecated boolean isChest(org.bukkit.Material material)
isChest(int)material - The material to checkisChest(int)boolean isChest(int type)
type - The type to checkCopyright © 2015. All Rights Reserved.