Class ServerStatsCounter

java.lang.Object
net.minecraft.stats.StatsCounter
net.minecraft.stats.ServerStatsCounter

public class ServerStatsCounter extends StatsCounter
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • server

      private final MinecraftServer server
    • file

      private final File file
    • dirty

      private final Set<Stat<?>> dirty
  • Constructor Details

  • Method Details

    • save

      public void save()
    • setValue

      public void setValue(Player p_12827_, Stat<?> p_12828_, int p_12829_)
      Overrides:
      setValue in class StatsCounter
    • getDirty

      private Set<Stat<?>> getDirty()
    • parseLocal

      public void parseLocal(com.mojang.datafixers.DataFixer p_12833_, String p_12834_)
    • getStat

      private <T> Optional<Stat<T>> getStat(StatType<T> p_12824_, String p_12825_)
    • fromJson

      private static CompoundTag fromJson(com.google.gson.JsonObject p_12831_)
    • toJson

      protected String toJson()
    • getKey

      private static <T> ResourceLocation getKey(Stat<T> p_12847_)
    • markAllDirty

      public void markAllDirty()
    • sendStats

      public void sendStats(ServerPlayer p_12820_)