Interface PlayerGameStats
public interface PlayerGameStats
Player stats container for a game.
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
@NotNull UUID
List of registered statistics.default Optional<GameStatistic<?>>
getStatistic
(@NotNull DefaultStatistics id) getStatistic
(@NotNull String id) @NotNull String
void
registerStatistic
(@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.
-