Package com.tomkeuper.bedwars.api.stats
Interface IPlayerStats
public interface IPlayerStats
Represents the statistics of a player.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of beds destroyed by the player.int
Returns the number of deaths of the player.int
Returns the number of final deaths of the player.int
Returns the number of final kills of the player.Returns the timestamp of the first play of the player.int
Returns the number of games played by the player.int
getKills()
Returns the number of kills of the player.Returns the timestamp of the last play of the player.int
Returns the number of losses of the player.getName()
Returns the name of the player.int
Returns the total number of kills (including final kills) of the player.getUuid()
Returns the UUID of the player.int
getWins()
Returns the number of wins of the player.void
setBedsDestroyed
(int bedsDestroyed) Sets the number of beds destroyed by the player.void
setDeaths
(int deaths) Sets the number of deaths of the player.void
setFinalDeaths
(int finalDeaths) Sets the number of final deaths of the player.void
setFinalKills
(int finalKills) Sets the number of final kills of the player.void
setFirstPlay
(Instant firstPlay) Sets the timestamp of the first play of the player.void
setGamesPlayed
(int gamesPlayed) Sets the number of games played by the player.void
setKills
(int kills) Sets the number of kills of the player.void
setLastPlay
(Instant lastPlay) Sets the timestamp of the last play of the player.void
setLosses
(int losses) Sets the number of losses of the player.void
Sets the name of the player.void
setWins
(int wins) Sets the number of wins of the player.
-
Method Details
-
getUuid
UUID getUuid()Returns the UUID of the player.- Returns:
- The UUID of the player.
-
getName
String getName()Returns the name of the player.- Returns:
- The name of the player.
-
setName
Sets the name of the player.- Parameters:
name
- The name of the player.
-
getFirstPlay
Instant getFirstPlay()Returns the timestamp of the first play of the player.- Returns:
- The timestamp of the first play.
-
setFirstPlay
Sets the timestamp of the first play of the player.- Parameters:
firstPlay
- The timestamp of the first play.
-
getLastPlay
Instant getLastPlay()Returns the timestamp of the last play of the player.- Returns:
- The timestamp of the last play.
-
setLastPlay
Sets the timestamp of the last play of the player.- Parameters:
lastPlay
- The timestamp of the last play.
-
getWins
int getWins()Returns the number of wins of the player.- Returns:
- The number of wins.
-
setWins
void setWins(int wins) Sets the number of wins of the player.- Parameters:
wins
- The number of wins.
-
getKills
int getKills()Returns the number of kills of the player.- Returns:
- The number of kills.
-
setKills
void setKills(int kills) Sets the number of kills of the player.- Parameters:
kills
- The number of kills.
-
getFinalKills
int getFinalKills()Returns the number of final kills of the player.- Returns:
- The number of final kills.
-
setFinalKills
void setFinalKills(int finalKills) Sets the number of final kills of the player.- Parameters:
finalKills
- The number of final kills.
-
getLosses
int getLosses()Returns the number of losses of the player.- Returns:
- The number of losses.
-
setLosses
void setLosses(int losses) Sets the number of losses of the player.- Parameters:
losses
- The number of losses.
-
getDeaths
int getDeaths()Returns the number of deaths of the player.- Returns:
- The number of deaths.
-
setDeaths
void setDeaths(int deaths) Sets the number of deaths of the player.- Parameters:
deaths
- The number of deaths.
-
getFinalDeaths
int getFinalDeaths()Returns the number of final deaths of the player.- Returns:
- The number of final deaths.
-
setFinalDeaths
void setFinalDeaths(int finalDeaths) Sets the number of final deaths of the player.- Parameters:
finalDeaths
- The number of final deaths.
-
getBedsDestroyed
int getBedsDestroyed()Returns the number of beds destroyed by the player.- Returns:
- The number of beds destroyed.
-
setBedsDestroyed
void setBedsDestroyed(int bedsDestroyed) Sets the number of beds destroyed by the player.- Parameters:
bedsDestroyed
- The number of beds destroyed.
-
getGamesPlayed
int getGamesPlayed()Returns the number of games played by the player.- Returns:
- The number of games played.
-
setGamesPlayed
void setGamesPlayed(int gamesPlayed) Sets the number of games played by the player.- Parameters:
gamesPlayed
- The number of games played.
-
getTotalKills
int getTotalKills()Returns the total number of kills (including final kills) of the player.- Returns:
- The total number of kills.
-