Interface PlayerGameStats
public interface PlayerGameStats
Player stats container for a game.
-
Method Summary
Modifier and TypeMethodDescription@NotNull String@NotNull UUIDList of registered statistics.default Optional<GameStatistic<?>> getStatistic(@NotNull DefaultStatistics id) getStatistic(@NotNull String id) @NotNull StringvoidregisterStatistic(@NotNull String id, @NotNull GameStatistic<?> defaultValue)
-
Method Details
-
getPlayer
-
getDisplayPlayer
- Returns:
- player display name.
-
getUsername
- Returns:
- player username.
-
registerStatistic
void registerStatistic(@NotNull @NotNull String id, @NotNull @NotNull GameStatistic<?> defaultValue) -
getStatistic
-
getStatistic
-
getRegistered
List of registered statistics.
-