public class SignChestProtection extends Object implements ChestProtection
| Constructor and Description |
|---|
SignChestProtection() |
| 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.
|
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.
|
public boolean isProtected(org.bukkit.block.Block block,
org.bukkit.entity.Player player)
ChestProtectionisProtected in interface ChestProtectionblock - The block to checkplayer - The player to checkpublic boolean isProtectedPlacement(org.bukkit.block.Block block,
org.bukkit.entity.Player player)
ChestProtectionisProtectedPlacement in interface ChestProtectionblock - The block to checkplayer - The player to checkplayer can place a block at the specified blockpublic boolean isAdjacentChestProtected(org.bukkit.block.Block searchBlock,
org.bukkit.entity.Player player)
ChestProtectionisAdjacentChestProtected in interface ChestProtectionsearchBlock - The block to checkplayer - The player to checksearchBlock is protected from access by player@Deprecated public boolean isChest(org.bukkit.Material material)
ChestProtectionisChest in interface ChestProtectionmaterial - The material to checkChestProtection.isChest(int)public boolean isChest(int type)
ChestProtectionisChest in interface ChestProtectiontype - The type to checkCopyright © 2015. All Rights Reserved.