- All Superinterfaces:
com.phoenixplugins.sdk.api.database.DbModel
public interface PlayerDbModel
extends com.phoenixplugins.sdk.api.database.DbModel
Represents a player database model abstraction.
This interface defines all getters and setters required to access
and mutate player-related persistent data.
-
Method Summary
String
Gets the crates cooldown data.
int
Gets the database identifier.
String
Gets the items to claim data.
Object
Gets the synchronization lock object.
String
Gets the opened crates amount data.
String
Gets the opened pouches amount data.
String
String
String
Gets the rewards cooldown data.
String
Gets the rewards win amount data.
String
Gets the unique player identifier.
String
Gets the virtual keys data.
void
Sets the crates cooldown data.
void
Sets the database identifier.
void
Sets the items to claim data.
void
Sets the synchronization lock object.
void
Sets the opened crates amount data.
void
Sets the opened pouches amount data.
void
void
void
Sets the rewards cooldown data.
void
Sets the rewards win amount data.
void
Sets the unique player identifier.
void
Sets the virtual keys data.
-
Method Details
-
getLock
Object getLock()
Gets the synchronization lock object.
- Specified by:
-
getLock in interface com.phoenixplugins.sdk.api.database.DbModel
- Returns:
- lock object
-
setLock
void setLock(Object lock)
Sets the synchronization lock object.
- Parameters:
-
lock - lock object
-
getId
int getId()
Gets the database identifier.
- Specified by:
-
getId in interface com.phoenixplugins.sdk.api.database.DbModel
- Returns:
- player id
-
setId
void setId(int id)
Sets the database identifier.
- Specified by:
-
setId in interface com.phoenixplugins.sdk.api.database.DbModel
- Parameters:
-
id - player id
-
getUniqueId
String getUniqueId()
Gets the unique player identifier.
- Returns:
- unique id
-
setUniqueId
void setUniqueId(String uniqueId)
Sets the unique player identifier.
- Parameters:
-
uniqueId - unique id
-
getPlayerName
String getPlayerName()
Gets the player name.
- Returns:
- player name
-
setPlayerName
void setPlayerName(String playerName)
Sets the player name.
- Parameters:
-
playerName - player name
-
getOpenedCratesAmount
String getOpenedCratesAmount()
Gets the opened crates amount data.
- Returns:
- opened crates amount
-
setOpenedCratesAmount
void setOpenedCratesAmount(String openedCratesAmount)
Sets the opened crates amount data.
- Parameters:
-
openedCratesAmount - opened crates amount
-
getOpenedPouchesAmount
String getOpenedPouchesAmount()
Gets the opened pouches amount data.
- Returns:
- opened pouches amount
-
setOpenedPouchesAmount
void setOpenedPouchesAmount(String openedPouchesAmount)
Sets the opened pouches amount data.
- Parameters:
-
openedPouchesAmount - opened pouches amount
-
getCratesCooldown
String getCratesCooldown()
Gets the crates cooldown data.
- Returns:
- crates cooldown
-
setCratesCooldown
void setCratesCooldown(String cratesCooldown)
Sets the crates cooldown data.
- Parameters:
-
cratesCooldown - crates cooldown
-
getRewardsWinAmount
String getRewardsWinAmount()
Gets the rewards win amount data.
- Returns:
- rewards win amount
-
setRewardsWinAmount
void setRewardsWinAmount(String rewardsWinAmount)
Sets the rewards win amount data.
- Parameters:
-
rewardsWinAmount - rewards win amount
-
getRewardsCooldown
String getRewardsCooldown()
Gets the rewards cooldown data.
- Returns:
- rewards cooldown
-
setRewardsCooldown
void setRewardsCooldown(String rewardsCooldown)
Sets the rewards cooldown data.
- Parameters:
-
rewardsCooldown - rewards cooldown
-
getVirtualKeys
String getVirtualKeys()
Gets the virtual keys data.
- Returns:
- virtual keys
-
setVirtualKeys
void setVirtualKeys(String virtualKeys)
Sets the virtual keys data.
- Parameters:
-
virtualKeys - virtual keys
-
getRerolls
String getRerolls()
Gets the rerolls data.
- Returns:
- rerolls
-
setRerolls
void setRerolls(String rerolls)
Sets the rerolls data.
- Parameters:
-
rerolls - rerolls
-
getItemsToClaim
String getItemsToClaim()
Gets the items to claim data.
- Returns:
- items to claim
-
setItemsToClaim
void setItemsToClaim(String itemsToClaim)
Sets the items to claim data.
- Parameters:
-
itemsToClaim - items to claim