Interface TanClaimManager


public interface TanClaimManager
  • Method Summary

    Modifier and Type
    Method
    Description
    getTerritoryOfBlock(org.bukkit.block.Block block)
    Get the territory own a block.
    boolean
    isBlockClaimed(org.bukkit.block.Block block)
    Check if a block is claimed by a territory or a landmark.
  • 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.
    • 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.