Interface PlayerGameStats


public interface PlayerGameStats
Player stats container for a game.
  • Method Details

    • getPlayer

      @NotNull @NotNull UUID getPlayer()
    • getDisplayPlayer

      @NotNull @NotNull String getDisplayPlayer()
      Returns:
      player display name.
    • getUsername

      @NotNull @NotNull String getUsername()
      Returns:
      player username.
    • registerStatistic

      void registerStatistic(@NotNull @NotNull String id, @NotNull @NotNull GameStatistic<?> defaultValue)
    • getStatistic

      Optional<GameStatistic<?>> getStatistic(@NotNull @NotNull String id)
    • getStatistic

      default Optional<GameStatistic<?>> getStatistic(@NotNull @NotNull DefaultStatistics id)
    • getRegistered

      List<String> getRegistered()
      List of registered statistics.