Class ServerStatsCounter
java.lang.Object
net.minecraft.stats.StatsCounter
net.minecraft.stats.ServerStatsCounter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Pathprivate static final com.google.gson.Gsonprivate static final org.slf4j.LoggerFields inherited from class StatsCounter
stats -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTypedStatsCodec(StatType<T> type) getDirty()voidvoidvoidsave()voidsendStats(ServerPlayer player) voidprotected com.google.gson.JsonElementtoJson()Methods inherited from class StatsCounter
getValue, getValue, increment
-
Field Details
-
GSON
private static final com.google.gson.Gson GSON -
LOGGER
private static final org.slf4j.Logger LOGGER -
STATS_CODEC
-
file
-
dirty
-
-
Constructor Details
-
ServerStatsCounter
-
-
Method Details
-
createTypedStatsCodec
-
save
public void save() -
setValue
- Overrides:
setValuein classStatsCounter
-
getDirty
-
parse
-
toJson
protected com.google.gson.JsonElement toJson() -
markAllDirty
public void markAllDirty() -
sendStats
-