public class ServerStatisticsManager extends StatisticsManager
Modifier and Type | Field and Description |
---|---|
private java.util.Set<Stat<?>> |
dirty |
private int |
lastStatRequest |
private static org.apache.logging.log4j.Logger |
LOGGER |
private MinecraftServer |
server |
private java.io.File |
statsFile |
statsData
Constructor and Description |
---|
ServerStatisticsManager(MinecraftServer serverIn,
java.io.File statsFileIn) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
func_199061_b() |
private static CompoundNBT |
func_199065_a(com.google.gson.JsonObject p_199065_0_) |
private static <T> ResourceLocation |
func_199066_b(Stat<T> p_199066_0_) |
private <T> java.util.Optional<Stat<T>> |
func_219728_a(StatType<T> p_219728_1_,
java.lang.String p_219728_2_) |
private java.util.Set<Stat<?>> |
getDirty() |
void |
markAllDirty() |
void |
parseLocal(com.mojang.datafixers.DataFixer p_199062_1_,
java.lang.String p_199062_2_) |
void |
saveStatFile() |
void |
sendStats(ServerPlayerEntity player) |
void |
setValue(PlayerEntity playerIn,
Stat<?> statIn,
int p_150873_3_) |
getValue, getValue, increment
private static final org.apache.logging.log4j.Logger LOGGER
private final MinecraftServer server
private final java.io.File statsFile
private final java.util.Set<Stat<?>> dirty
private int lastStatRequest
public ServerStatisticsManager(MinecraftServer serverIn, java.io.File statsFileIn)
public void saveStatFile()
public void setValue(PlayerEntity playerIn, Stat<?> statIn, int p_150873_3_)
setValue
in class StatisticsManager
private java.util.Set<Stat<?>> getDirty()
public void parseLocal(com.mojang.datafixers.DataFixer p_199062_1_, java.lang.String p_199062_2_)
private <T> java.util.Optional<Stat<T>> func_219728_a(StatType<T> p_219728_1_, java.lang.String p_219728_2_)
private static CompoundNBT func_199065_a(com.google.gson.JsonObject p_199065_0_)
protected java.lang.String func_199061_b()
private static <T> ResourceLocation func_199066_b(Stat<T> p_199066_0_)
public void markAllDirty()
public void sendStats(ServerPlayerEntity player)