类 StatsCounter

java.lang.Object
net.minecraft.stats.StatsCounter
直接已知子类:
ServerStatsCounter

public class StatsCounter extends Object
  • 字段详细资料

    • stats

      protected final it.unimi.dsi.fastutil.objects.Object2IntMap<Stat<?>> stats
  • 构造器详细资料

    • StatsCounter

      public StatsCounter()
  • 方法详细资料

    • increment

      public void increment(Player pPlayer, Stat<?> pStat, int pAmount)
    • setValue

      public void setValue(Player pPlayer, Stat<?> pStat, int pValue)
    • getValue

      public <T> int getValue(StatType<T> pType, T pValue)
    • getValue

      public int getValue(Stat<?> pStat)