Class ServerStatisticsManager

java.lang.Object
net.minecraft.stats.StatisticsManager
net.minecraft.stats.ServerStatisticsManager

public class ServerStatisticsManager extends StatisticsManager
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • server

      private final MinecraftServer server
    • file

      private final File file
    • dirty

      private final Set<Stat<?>> dirty
    • lastStatRequest

      private int lastStatRequest
  • Constructor Details

    • ServerStatisticsManager

      public ServerStatisticsManager(MinecraftServer p_i45306_1_, File p_i45306_2_)
  • Method Details

    • save

      public void save()
    • setValue

      public void setValue(PlayerEntity p_150873_1_, Stat<?> p_150873_2_, int p_150873_3_)
      Overrides:
      setValue in class StatisticsManager
    • getDirty

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

      public void parseLocal(com.mojang.datafixers.DataFixer p_199062_1_, String p_199062_2_)
    • getStat

      private <T> Optional<Stat<T>> getStat(StatType<T> p_219728_1_, String p_219728_2_)
    • fromJson

      private static CompoundNBT fromJson(com.google.gson.JsonObject p_199065_0_)
    • toJson

      protected String toJson()
    • getKey

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

      public void markAllDirty()
    • sendStats

      public void sendStats(ServerPlayerEntity p_150876_1_)