Package us.ajg0702.leaderboards.boards
Class StatEntry
java.lang.Object
us.ajg0702.leaderboards.boards.StatEntry
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
addCommas
(double number) static StatEntry
boardNotFound
(int position, String board, TimedType type) void
changeScore
(double newScore, String newPrefix, String newSuffix) static StatEntry
static String
formatDouble
(double number) static StatEntry
fromJsonObject
(LeaderboardPlugin plugin, com.google.gson.JsonObject object) getBoard()
getColor()
Deprecated.@NotNull String
int
double
getScore()
getSkin()
getTime()
getType()
boolean
static StatEntry
static StatEntry
loading
(LeaderboardPlugin plugin, int position, String board, TimedType type) static StatEntry
loading
(LeaderboardPlugin plugin, String board, TimedType type) static StatEntry
loading
(LeaderboardPlugin plugin, BoardType boardType) static StatEntry
noData
(LeaderboardPlugin plugin, int position, String board, TimedType type) static StatEntry
noRelData
(LeaderboardPlugin plugin, int position, String board, TimedType type) static void
setPlugin
(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
-