Package net.minecraft.stats
Class ServerStatisticsManager
java.lang.Object
net.minecraft.stats.StatisticsManager
net.minecraft.stats.ServerStatisticsManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate final File
private int
private static final org.apache.logging.log4j.Logger
private final MinecraftServer
Fields inherited from class net.minecraft.stats.StatisticsManager
stats
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static CompoundNBT
fromJson
(com.google.gson.JsonObject p_199065_0_) getDirty()
private static <T> ResourceLocation
void
void
parseLocal
(com.mojang.datafixers.DataFixer p_199062_1_, String p_199062_2_) void
save()
void
sendStats
(ServerPlayerEntity p_150876_1_) void
setValue
(PlayerEntity p_150873_1_, Stat<?> p_150873_2_, int p_150873_3_) protected String
toJson()
Methods inherited from class net.minecraft.stats.StatisticsManager
getValue, getValue, increment
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
server
-
file
-
dirty
-
lastStatRequest
private int lastStatRequest
-
-
Constructor Details
-
ServerStatisticsManager
-
-
Method Details
-
save
public void save() -
setValue
- Overrides:
setValue
in classStatisticsManager
-
getDirty
-
parseLocal
-
getStat
-
fromJson
-
toJson
-
getKey
-
markAllDirty
public void markAllDirty() -
sendStats
-