Package com.sk89q.worldguard.chest
Class SignChestProtection
java.lang.Object
com.sk89q.worldguard.chest.SignChestProtection
- All Implemented Interfaces:
ChestProtection
Sign-based chest protection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isAdjacentChestProtected
(com.sk89q.worldedit.util.Location searchBlock, LocalPlayer player) Returns whether an adjacent chest is protected.boolean
isProtected
(com.sk89q.worldedit.util.Location location, 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.abstract Boolean
isProtectedSign
(com.sk89q.worldedit.util.Location block, LocalPlayer player) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sk89q.worldguard.chest.ChestProtection
isChest
-
Constructor Details
-
SignChestProtection
public SignChestProtection()
-
-
Method Details
-
isProtectedSign
public abstract Boolean isProtectedSign(com.sk89q.worldedit.util.Location block, LocalPlayer player) -
isProtected
Description copied from interface:ChestProtection
Returns whether a block is protected.- Specified by:
isProtected
in interfaceChestProtection
- Parameters:
location
- The block to checkplayer
- The player to check- Returns:
- Whether the block is protected for player
-
isProtectedPlacement
Description copied from interface:ChestProtection
Returns whether a location where a chest block is trying to be created is protected.- Specified by:
isProtectedPlacement
in interfaceChestProtection
- Parameters:
block
- The block to checkplayer
- The player to check- Returns:
- Whether
player
can place a block at the specified block
-
isAdjacentChestProtected
public boolean isAdjacentChestProtected(com.sk89q.worldedit.util.Location searchBlock, LocalPlayer player) Description copied from interface:ChestProtection
Returns whether an adjacent chest is protected.- Specified by:
isAdjacentChestProtected
in interfaceChestProtection
- Parameters:
searchBlock
- The block to checkplayer
- The player to check- Returns:
- Whether
searchBlock
is protected from access byplayer
-