Package net.minestom.server.statistic
Class PlayerStatistic
java.lang.Object
net.minestom.server.statistic.PlayerStatistic
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 Summary
ConstructorsConstructorDescriptionPlayerStatistic(@NotNull net.minestom.server.statistic.StatisticCategory category, int statisticId) PlayerStatistic(@NotNull StatisticType type) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minestom.server.statistic.StatisticCategoryint
-
Constructor Details
-
PlayerStatistic
public PlayerStatistic(@NotNull @NotNull net.minestom.server.statistic.StatisticCategory category, int statisticId) -
PlayerStatistic
-
-
Method Details
-
getCategory
@NotNull public @NotNull net.minestom.server.statistic.StatisticCategory getCategory() -
getStatisticId
public int getStatisticId()
-