Package net.minecraft.stats
Class ServerStatsCounter
java.lang.Object
net.minecraft.stats.StatsCounter
net.minecraft.stats.ServerStatsCounter
Server-side implementation of
StatsCounter; handles counting, serialising, and de-serialising statistics, as well as sending them to connected clients via the award stats packet.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Fileprivate static final org.slf4j.Loggerprivate final MinecraftServerFields inherited from class net.minecraft.stats.StatsCounter
stats -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static CompoundTagfromJson(JsonObject pJson) getDirty()private static <T> ResourceLocationvoidvoidparseLocal(com.mojang.datafixers.DataFixer pFixerUpper, String pJson) voidsave()voidsendStats(ServerPlayer pPlayer) voidprotected StringtoJson()Methods inherited from class net.minecraft.stats.StatsCounter
getValue, getValue, increment
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
server
-
file
-
dirty
-
-
Constructor Details
-
ServerStatsCounter
-
-
Method Details
-
save
public void save() -
setValue
- Overrides:
setValuein classStatsCounter
-
getDirty
-
parseLocal
-
getStat
-
fromJson
-
toJson
-
getKey
-
markAllDirty
public void markAllDirty() -
sendStats
-