Package net.minecraft.stat
Class ServerStatHandler
java.lang.Object
net.minecraft.stat.StatHandler
net.minecraft.stat.ServerStatHandler
public class ServerStatHandler extends StatHandler
- Mappings:
Namespace Name official aem
intermediary net/minecraft/class_3442
named net/minecraft/stat/ServerStatHandler
-
Field Summary
Fields Modifier and Type Field Description private File
file
private int
lastStatsUpdate
private static Logger
LOGGER
private Set<Stat<?>>
pendingStats
private MinecraftServer
server
Fields inherited from class net.minecraft.stat.StatHandler
statMap
-
Constructor Summary
Constructors Constructor Description ServerStatHandler(MinecraftServer server, File file)
-
Method Summary
Modifier and Type Method Description protected String
asString()
private <T> Optional<Stat<T>>
createStat(StatType<T> type, String id)
private static <T> Identifier
getStatId(Stat<T> stat)
private static CompoundTag
jsonToCompound(JsonObject jsonObject)
void
parse(com.mojang.datafixers.DataFixer dataFixer, String json)
void
save()
void
sendStats(ServerPlayerEntity player)
void
setStat(PlayerEntity player, Stat<?> stat, int value)
private Set<Stat<?>>
takePendingStats()
void
updateStatSet()
Methods inherited from class net.minecraft.stat.StatHandler
getStat, getStat, increaseStat
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Laem;b:Lorg/apache/logging/log4j/Logger;
intermediary field_15309
Lnet/minecraft/class_3442;field_15309:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/stat/ServerStatHandler;LOGGER:Lorg/apache/logging/log4j/Logger;
-
server
- Mappings:
Namespace Name Mixin selector official c
Laem;c:Lnet/minecraft/server/MinecraftServer;
intermediary field_15308
Lnet/minecraft/class_3442;field_15308:Lnet/minecraft/server/MinecraftServer;
named server
Lnet/minecraft/stat/ServerStatHandler;server:Lnet/minecraft/server/MinecraftServer;
-
file
- Mappings:
Namespace Name Mixin selector official d
Laem;d:Ljava/io/File;
intermediary field_15305
Lnet/minecraft/class_3442;field_15305:Ljava/io/File;
named file
Lnet/minecraft/stat/ServerStatHandler;file:Ljava/io/File;
-
pendingStats
- Mappings:
Namespace Name Mixin selector official e
Laem;e:Ljava/util/Set;
intermediary field_15307
Lnet/minecraft/class_3442;field_15307:Ljava/util/Set;
named pendingStats
Lnet/minecraft/stat/ServerStatHandler;pendingStats:Ljava/util/Set;
-
lastStatsUpdate
private int lastStatsUpdate- Mappings:
Namespace Name Mixin selector official f
Laem;f:I
intermediary field_15306
Lnet/minecraft/class_3442;field_15306:I
named lastStatsUpdate
Lnet/minecraft/stat/ServerStatHandler;lastStatsUpdate:I
-
-
Constructor Details
-
ServerStatHandler
- Mappings:
Namespace Name Mixin selector official <init>
Laem;<init>(Lnet/minecraft/server/MinecraftServer;Ljava/io/File;)V
intermediary <init>
Lnet/minecraft/class_3442;<init>(Lnet/minecraft/server/MinecraftServer;Ljava/io/File;)V
named <init>
Lnet/minecraft/stat/ServerStatHandler;<init>(Lnet/minecraft/server/MinecraftServer;Ljava/io/File;)V
-
-
Method Details
-
save
public void save()- Mappings:
Namespace Name Mixin selector official a
Laem;a()V
intermediary method_14912
Lnet/minecraft/class_3442;method_14912()V
named save
Lnet/minecraft/stat/ServerStatHandler;save()V
-
setStat
- Overrides:
setStat
in classStatHandler
- Mappings:
Namespace Name Mixin selector official a
Laer;a(Lbhl;Laen;I)V
intermediary method_15023
Lnet/minecraft/class_3469;method_15023(Lnet/minecraft/class_1657;Lnet/minecraft/class_3445;I)V
named setStat
Lnet/minecraft/stat/StatHandler;setStat(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/stat/Stat;I)V
-
takePendingStats
- Mappings:
Namespace Name Mixin selector official d
Laem;d()Ljava/util/Set;
intermediary method_14909
Lnet/minecraft/class_3442;method_14909()Ljava/util/Set;
named takePendingStats
Lnet/minecraft/stat/ServerStatHandler;takePendingStats()Ljava/util/Set;
-
parse
- Mappings:
Namespace Name Mixin selector official a
Laem;a(Lcom/mojang/datafixers/DataFixer;Ljava/lang/String;)V
intermediary method_14906
Lnet/minecraft/class_3442;method_14906(Lcom/mojang/datafixers/DataFixer;Ljava/lang/String;)V
named parse
Lnet/minecraft/stat/ServerStatHandler;parse(Lcom/mojang/datafixers/DataFixer;Ljava/lang/String;)V
-
createStat
- Mappings:
Namespace Name Mixin selector official a
Laem;a(Laep;Ljava/lang/String;)Ljava/util/Optional;
intermediary method_14905
Lnet/minecraft/class_3442;method_14905(Lnet/minecraft/class_3448;Ljava/lang/String;)Ljava/util/Optional;
named createStat
Lnet/minecraft/stat/ServerStatHandler;createStat(Lnet/minecraft/stat/StatType;Ljava/lang/String;)Ljava/util/Optional;
-
jsonToCompound
- Mappings:
Namespace Name Mixin selector official a
Laem;a(Lcom/google/gson/JsonObject;)Lmq;
intermediary method_14908
Lnet/minecraft/class_3442;method_14908(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_2487;
named jsonToCompound
Lnet/minecraft/stat/ServerStatHandler;jsonToCompound(Lcom/google/gson/JsonObject;)Lnet/minecraft/nbt/CompoundTag;
-
asString
- Mappings:
Namespace Name Mixin selector official b
Laem;b()Ljava/lang/String;
intermediary method_14911
Lnet/minecraft/class_3442;method_14911()Ljava/lang/String;
named asString
Lnet/minecraft/stat/ServerStatHandler;asString()Ljava/lang/String;
-
getStatId
- Mappings:
Namespace Name Mixin selector official b
Laem;b(Laen;)Lwb;
intermediary method_14907
Lnet/minecraft/class_3442;method_14907(Lnet/minecraft/class_3445;)Lnet/minecraft/class_2960;
named getStatId
Lnet/minecraft/stat/ServerStatHandler;getStatId(Lnet/minecraft/stat/Stat;)Lnet/minecraft/util/Identifier;
-
updateStatSet
public void updateStatSet()- Mappings:
Namespace Name Mixin selector official c
Laem;c()V
intermediary method_14914
Lnet/minecraft/class_3442;method_14914()V
named updateStatSet
Lnet/minecraft/stat/ServerStatHandler;updateStatSet()V
-
sendStats
- Mappings:
Namespace Name Mixin selector official a
Laem;a(Laaw;)V
intermediary method_14910
Lnet/minecraft/class_3442;method_14910(Lnet/minecraft/class_3222;)V
named sendStats
Lnet/minecraft/stat/ServerStatHandler;sendStats(Lnet/minecraft/server/network/ServerPlayerEntity;)V
-