Class PlayerStatistic

java.lang.Object
net.minestom.server.statistic.PlayerStatistic

public class PlayerStatistic extends Object
Represents a single statistic in the "statistics" game menu.

You can retrieve the statistics map with Player.getStatisticValueMap() and modify it with your own values.

  • Constructor Details

    • PlayerStatistic

      public PlayerStatistic(@NotNull @NotNull StatisticCategory category, int statisticId)
    • PlayerStatistic

      public PlayerStatistic(@NotNull @NotNull StatisticType type)
  • Method Details

    • getCategory

      @NotNull public @NotNull StatisticCategory getCategory()
    • getStatisticId

      public int getStatisticId()