Interface TanClaimManager


public interface TanClaimManager
The TanClaimManager interface provides methods for managing block claims within the application. It allows checking if a block is claimed by a territory or landmark and retrieving the territory that owns a claimed block. This interface is essential for handling claim-related operations and ensuring proper management of block ownership.
  • Method Details

    • isBlockClaimed

      boolean isBlockClaimed(org.bukkit.block.Block block)
      Check if a block is claimed by a territory or a landmark.
      Parameters:
      block - The block to check.
      Returns:
      True if the block is claimed, false otherwise.
    • getClaimedChunk

      TanClaimedChunk getClaimedChunk(org.bukkit.Location location)
    • getClaimedChunk

      default TanClaimedChunk getClaimedChunk(org.bukkit.block.Block block)
    • getTerritoryOfBlock

      Optional<TanTerritory> getTerritoryOfBlock(org.bukkit.block.Block block)
      Get the territory own a block.
      If the block is claimed by a landmark, the territory owning the landmark will be returned.
      Parameters:
      block - The block to check.
      Returns:
      The territory owning the block, or Optional.empty() if the block is not claimed.