Interface IPlayerData
- All Known Implementing Classes:
GDPlayerData
,GPPlayerData
,TownyPlayerData
,WGPlayerData
public interface IPlayerData
The IPlayerData interface defines methods to retrieve and modify a player's claim block data.
-
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the number of accrued claim blocks for the player.int
Retrieves the number of bonus claim blocks for the player.int
Retrieves the total number of claim blocks remaining for the player.void
setAccruedClaimBlocks
(int accruedClaimBlocks) Sets the number of accrued claim blocks for the player.void
setBonusClaimBlocks
(int bonusClaimBlocks) Sets the number of bonus claim blocks for the player.
-
Method Details
-
getAccruedClaimBlocks
int getAccruedClaimBlocks()Retrieves the number of accrued claim blocks for the player.- Returns:
- the number of accrued claim blocks
-
getBonusClaimBlocks
int getBonusClaimBlocks()Retrieves the number of bonus claim blocks for the player.- Returns:
- the number of bonus claim blocks
-
setAccruedClaimBlocks
void setAccruedClaimBlocks(int accruedClaimBlocks) Sets the number of accrued claim blocks for the player.- Parameters:
accruedClaimBlocks
- the new number of accrued claim blocks
-
setBonusClaimBlocks
void setBonusClaimBlocks(int bonusClaimBlocks) Sets the number of bonus claim blocks for the player.- Parameters:
bonusClaimBlocks
- the new number of bonus claim blocks
-
getRemainingClaimBlocks
int getRemainingClaimBlocks()Retrieves the total number of claim blocks remaining for the player.- Returns:
- the number of remaining claim blocks
-