Package us.ajg0702.leaderboards.boards
Class StatEntry
java.lang.Object
us.ajg0702.leaderboards.boards.StatEntry
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringaddCommas(double number) static StatEntryboardNotFound(int position, String board, TimedType type) voidchangeScore(double newScore, String newPrefix, String newSuffix) static StatEntrystatic StringformatDouble(double number) static StatEntryfromJsonObject(LeaderboardPlugin plugin, com.google.gson.JsonObject object) getBoard()getColor()Deprecated.@NotNull StringintdoublegetScore()getSkin()getTime()getType()booleanstatic StatEntrystatic StatEntryloading(LeaderboardPlugin plugin, int position, String board, TimedType type) static StatEntryloading(LeaderboardPlugin plugin, String board, TimedType type) static StatEntryloading(LeaderboardPlugin plugin, BoardType boardType) static StatEntrynoData(LeaderboardPlugin plugin, int position, String board, TimedType type) static StatEntrynoRelData(LeaderboardPlugin plugin, int position, String board, TimedType type) static voidsetPlugin(LeaderboardPlugin leaderboardPlugin) com.google.gson.JsonObject
- 
Field Details- 
BOARD_DOES_NOT_EXIST- See Also:
 
- 
AN_ERROR_OCCURRED- See Also:
 
 
- 
- 
Constructor Details- 
StatEntry
 
- 
- 
Method Details- 
changeScore
- 
hasPlayerpublic boolean hasPlayer()
- 
getPrefix
- 
getSuffix
- 
getPlayerName
- 
getSkin
- 
getPlayerDisplayName
- 
getPlayerID
- 
getPositionpublic int getPosition()
- 
getBoard
- 
getType
- 
getScorepublic double getScore()
- 
getScoreFormatted
- 
getColor
- 
formatDouble
- 
getScorePretty
- 
getTime
- 
addCommas
- 
getPlayerDeprecated.Deprecated. Use getPlayerName instead
- 
boardNotFound
- 
error
- 
noDatapublic static StatEntry noData(LeaderboardPlugin plugin, int position, String board, TimedType type) 
- 
noRelDatapublic static StatEntry noRelData(LeaderboardPlugin plugin, int position, String board, TimedType type) 
- 
loadingpublic static StatEntry loading(LeaderboardPlugin plugin, int position, String board, TimedType type) 
- 
loading
- 
loading
- 
loading
- 
toJsonObjectpublic com.google.gson.JsonObject toJsonObject()
- 
fromJsonObject
- 
setPlugin
 
-