Class StatsCounter

java.lang.Object
net.minecraft.stats.StatsCounter
Direct Known Subclasses:
ServerStatsCounter

public class StatsCounter extends Object
  • Field Details

    • stats

      protected final it.unimi.dsi.fastutil.objects.Object2IntMap<Stat<?>> stats
  • Constructor Details

    • StatsCounter

      public StatsCounter()
  • Method Details

    • increment

      public void increment(Player player, Stat<?> stat, int count)
    • setValue

      public void setValue(Player player, Stat<?> stat, int count)
    • getValue

      public <T> int getValue(StatType<T> type, T key)
    • getValue

      public int getValue(Stat<?> stat)