Package us.ajg0702.leaderboards.boards
Class StatEntry
java.lang.Object
us.ajg0702.leaderboards.boards.StatEntry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
hasPlayer
public boolean hasPlayer() -
getPrefix
-
getSuffix
-
getPlayerName
-
getSkin
-
getPlayerDisplayName
-
getPlayerID
-
getPosition
public int getPosition() -
getBoard
-
getType
-
getScore
public double getScore() -
getScoreFormatted
-
getColor
-
formatDouble
-
getScorePretty
-
getTime
-
addCommas
-
getPlayer
Deprecated.Deprecated. Use getPlayerName instead -
boardNotFound
-
error
-
noData
public static StatEntry noData(LeaderboardPlugin plugin, int position, String board, TimedType type) -
noRelData
public static StatEntry noRelData(LeaderboardPlugin plugin, int position, String board, TimedType type) -
loading
public static StatEntry loading(LeaderboardPlugin plugin, int position, String board, TimedType type) -
loading
-
loading
-
loading
-
toJsonObject
public com.google.gson.JsonObject toJsonObject() -
fromJsonObject
-
setPlugin
-