Class ServerStatHandler

java.lang.Object
net.minecraft.stat.StatHandler
net.minecraft.stat.ServerStatHandler

public class ServerStatHandler extends StatHandler
Mappings:
Namespace Name
named net/minecraft/stat/ServerStatHandler
intermediary net/minecraft/class_3442
official axl
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/stat/ServerStatHandler;LOGGER:Lorg/slf4j/Logger;
      intermediary field_15309 Lnet/minecraft/class_3442;field_15309:Lorg/slf4j/Logger;
      official b Laxl;b:Lorg/slf4j/Logger;
    • server

      private final MinecraftServer server
      Mappings:
      Namespace Name Mixin selector
      named server Lnet/minecraft/stat/ServerStatHandler;server:Lnet/minecraft/server/MinecraftServer;
      intermediary field_15308 Lnet/minecraft/class_3442;field_15308:Lnet/minecraft/server/MinecraftServer;
      official c Laxl;c:Lnet/minecraft/server/MinecraftServer;
    • file

      private final File file
      Mappings:
      Namespace Name Mixin selector
      named file Lnet/minecraft/stat/ServerStatHandler;file:Ljava/io/File;
      intermediary field_15305 Lnet/minecraft/class_3442;field_15305:Ljava/io/File;
      official d Laxl;d:Ljava/io/File;
    • pendingStats

      private final Set<Stat<?>> pendingStats
      Mappings:
      Namespace Name Mixin selector
      named pendingStats Lnet/minecraft/stat/ServerStatHandler;pendingStats:Ljava/util/Set;
      intermediary field_15307 Lnet/minecraft/class_3442;field_15307:Ljava/util/Set;
      official e Laxl;e:Ljava/util/Set;
  • Constructor Details

    • ServerStatHandler

      public ServerStatHandler(MinecraftServer server, File file)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/stat/ServerStatHandler;<init>(Lnet/minecraft/server/MinecraftServer;Ljava/io/File;)V
      intermediary <init> Lnet/minecraft/class_3442;<init>(Lnet/minecraft/server/MinecraftServer;Ljava/io/File;)V
      official <init> Laxl;<init>(Lnet/minecraft/server/MinecraftServer;Ljava/io/File;)V
  • Method Details

    • save

      public void save()
      Mappings:
      Namespace Name Mixin selector
      named save Lnet/minecraft/stat/ServerStatHandler;save()V
      intermediary method_14912 Lnet/minecraft/class_3442;method_14912()V
      official a Laxl;a()V
    • setStat

      public void setStat(PlayerEntity player, Stat<?> stat, int value)
      Overrides:
      setStat in class StatHandler
      Mappings:
      Namespace Name Mixin selector
      named setStat Lnet/minecraft/stat/StatHandler;setStat(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/stat/Stat;I)V
      intermediary method_15023 Lnet/minecraft/class_3469;method_15023(Lnet/minecraft/class_1657;Lnet/minecraft/class_3445;I)V
      official a Laxq;a(Lcpw;Laxm;I)V
    • takePendingStats

      private Set<Stat<?>> takePendingStats()
      Mappings:
      Namespace Name Mixin selector
      named takePendingStats Lnet/minecraft/stat/ServerStatHandler;takePendingStats()Ljava/util/Set;
      intermediary method_14909 Lnet/minecraft/class_3442;method_14909()Ljava/util/Set;
      official d Laxl;d()Ljava/util/Set;
    • parse

      public void parse(com.mojang.datafixers.DataFixer dataFixer, String json)
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/stat/ServerStatHandler;parse(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
      official a Laxl;a(Lcom/mojang/datafixers/DataFixer;Ljava/lang/String;)V
    • createStat

      private <T> Optional<Stat<T>> createStat(StatType<T> type, String id)
      Mappings:
      Namespace Name Mixin selector
      named createStat Lnet/minecraft/stat/ServerStatHandler;createStat(Lnet/minecraft/stat/StatType;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;
      official a Laxl;a(Laxo;Ljava/lang/String;)Ljava/util/Optional;
    • jsonToCompound

      private static NbtCompound jsonToCompound(JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      named jsonToCompound Lnet/minecraft/stat/ServerStatHandler;jsonToCompound(Lcom/google/gson/JsonObject;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_14908 Lnet/minecraft/class_3442;method_14908(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_2487;
      official a Laxl;a(Lcom/google/gson/JsonObject;)Lux;
    • asString

      protected String asString()
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/stat/ServerStatHandler;asString()Ljava/lang/String;
      intermediary method_14911 Lnet/minecraft/class_3442;method_14911()Ljava/lang/String;
      official b Laxl;b()Ljava/lang/String;
    • getStatId

      private static <T> Identifier getStatId(Stat<T> stat)
      Mappings:
      Namespace Name Mixin selector
      named getStatId Lnet/minecraft/stat/ServerStatHandler;getStatId(Lnet/minecraft/stat/Stat;)Lnet/minecraft/util/Identifier;
      intermediary method_14907 Lnet/minecraft/class_3442;method_14907(Lnet/minecraft/class_3445;)Lnet/minecraft/class_2960;
      official b Laxl;b(Laxm;)Lalz;
    • updateStatSet

      public void updateStatSet()
      Mappings:
      Namespace Name Mixin selector
      named updateStatSet Lnet/minecraft/stat/ServerStatHandler;updateStatSet()V
      intermediary method_14914 Lnet/minecraft/class_3442;method_14914()V
      official c Laxl;c()V
    • sendStats

      public void sendStats(ServerPlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named sendStats Lnet/minecraft/stat/ServerStatHandler;sendStats(Lnet/minecraft/server/network/ServerPlayerEntity;)V
      intermediary method_14910 Lnet/minecraft/class_3442;method_14910(Lnet/minecraft/class_3222;)V
      official a Laxl;a(Lasi;)V