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 TypeMethodDescriptionbooleanisAdjacentChestProtected(com.sk89q.worldedit.util.Location searchBlock, LocalPlayer player)Returns whether an adjacent chest is protected.booleanisProtected(com.sk89q.worldedit.util.Location location, LocalPlayer player)Returns whether a block is protected.booleanisProtectedPlacement(com.sk89q.worldedit.util.Location block, LocalPlayer player)Returns whether a location where a chest block is trying to be created is protected.abstract BooleanisProtectedSign(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, waitMethods 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:ChestProtectionReturns whether a block is protected.- Specified by:
isProtectedin interfaceChestProtection- Parameters:
location- The block to checkplayer- The player to check- Returns:
- Whether the block is protected for player
-
isProtectedPlacement
Description copied from interface:ChestProtectionReturns whether a location where a chest block is trying to be created is protected.- Specified by:
isProtectedPlacementin interfaceChestProtection- Parameters:
block- The block to checkplayer- The player to check- Returns:
- Whether
playercan place a block at the specified block
-
isAdjacentChestProtected
public boolean isAdjacentChestProtected(com.sk89q.worldedit.util.Location searchBlock, LocalPlayer player)Description copied from interface:ChestProtectionReturns whether an adjacent chest is protected.- Specified by:
isAdjacentChestProtectedin interfaceChestProtection- Parameters:
searchBlock- The block to checkplayer- The player to check- Returns:
- Whether
searchBlockis protected from access byplayer
-