Class SignChestProtection

java.lang.Object
com.sk89q.worldguard.chest.SignChestProtection
All Implemented Interfaces:
ChestProtection

public abstract class SignChestProtection extends Object implements ChestProtection
Sign-based chest protection.
  • Constructor Details

    • SignChestProtection

      public SignChestProtection()
  • Method Details

    • isProtectedSign

      public abstract Boolean isProtectedSign(com.sk89q.worldedit.util.Location block, LocalPlayer player)
    • isProtected

      public boolean isProtected(com.sk89q.worldedit.util.Location location, LocalPlayer player)
      Description copied from interface: ChestProtection
      Returns whether a block is protected.
      Specified by:
      isProtected in interface ChestProtection
      Parameters:
      location - The block to check
      player - The player to check
      Returns:
      Whether the block is protected for player
    • isProtectedPlacement

      public boolean isProtectedPlacement(com.sk89q.worldedit.util.Location block, LocalPlayer player)
      Description copied from interface: ChestProtection
      Returns whether a location where a chest block is trying to be created is protected.
      Specified by:
      isProtectedPlacement in interface ChestProtection
      Parameters:
      block - The block to check
      player - 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 interface ChestProtection
      Parameters:
      searchBlock - The block to check
      player - The player to check
      Returns:
      Whether searchBlock is protected from access by player