Package org.tan.api.getters
Interface TanClaimManager
public interface TanClaimManager
-
Method Summary
Modifier and TypeMethodDescriptiongetTerritoryOfBlock
(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
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.
-