Class PlayerSaveHandler

java.lang.Object
net.minecraft.world.PlayerSaveHandler

public class PlayerSaveHandler extends Object
Mappings:
Namespace Name
named net/minecraft/world/PlayerSaveHandler
intermediary net/minecraft/class_29
official ewf
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/world/PlayerSaveHandler;LOGGER:Lorg/slf4j/Logger;
      intermediary field_149 Lnet/minecraft/class_29;field_149:Lorg/slf4j/Logger;
      official b Lewf;b:Lorg/slf4j/Logger;
    • DATE_TIME_FORMATTER

      private static final DateTimeFormatter DATE_TIME_FORMATTER
      Mappings:
      Namespace Name Mixin selector
      named DATE_TIME_FORMATTER Lnet/minecraft/world/PlayerSaveHandler;DATE_TIME_FORMATTER:Ljava/time/format/DateTimeFormatter;
      intermediary field_47840 Lnet/minecraft/class_29;field_47840:Ljava/time/format/DateTimeFormatter;
      official d Lewf;d:Ljava/time/format/DateTimeFormatter;
    • playerDataDir

      private final File playerDataDir
      Mappings:
      Namespace Name Mixin selector
      named playerDataDir Lnet/minecraft/world/PlayerSaveHandler;playerDataDir:Ljava/io/File;
      intermediary field_144 Lnet/minecraft/class_29;field_144:Ljava/io/File;
      official c Lewf;c:Ljava/io/File;
    • dataFixer

      protected final com.mojang.datafixers.DataFixer dataFixer
      Mappings:
      Namespace Name Mixin selector
      named dataFixer Lnet/minecraft/world/PlayerSaveHandler;dataFixer:Lcom/mojang/datafixers/DataFixer;
      intermediary field_148 Lnet/minecraft/class_29;field_148:Lcom/mojang/datafixers/DataFixer;
      official a Lewf;a:Lcom/mojang/datafixers/DataFixer;
  • Constructor Details

    • PlayerSaveHandler

      public PlayerSaveHandler(LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/PlayerSaveHandler;<init>(Lnet/minecraft/world/level/storage/LevelStorage$Session;Lcom/mojang/datafixers/DataFixer;)V
      intermediary <init> Lnet/minecraft/class_29;<init>(Lnet/minecraft/class_32$class_5143;Lcom/mojang/datafixers/DataFixer;)V
      official <init> Lewf;<init>(Lewc$c;Lcom/mojang/datafixers/DataFixer;)V
  • Method Details

    • savePlayerData

      public void savePlayerData(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named savePlayerData Lnet/minecraft/world/PlayerSaveHandler;savePlayerData(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_262 Lnet/minecraft/class_29;method_262(Lnet/minecraft/class_1657;)V
      official a Lewf;a(Lcpw;)V
    • backupCorruptedPlayerData

      private void backupCorruptedPlayerData(PlayerEntity player, String extension)
      Mappings:
      Namespace Name Mixin selector
      named backupCorruptedPlayerData Lnet/minecraft/world/PlayerSaveHandler;backupCorruptedPlayerData(Lnet/minecraft/entity/player/PlayerEntity;Ljava/lang/String;)V
      intermediary method_55787 Lnet/minecraft/class_29;method_55787(Lnet/minecraft/class_1657;Ljava/lang/String;)V
      official a Lewf;a(Lcpw;Ljava/lang/String;)V
    • loadPlayerData

      private Optional<NbtCompound> loadPlayerData(PlayerEntity player, String extension)
      Mappings:
      Namespace Name Mixin selector
      named loadPlayerData Lnet/minecraft/world/PlayerSaveHandler;loadPlayerData(Lnet/minecraft/entity/player/PlayerEntity;Ljava/lang/String;)Ljava/util/Optional;
      intermediary method_261 Lnet/minecraft/class_29;method_261(Lnet/minecraft/class_1657;Ljava/lang/String;)Ljava/util/Optional;
      official b Lewf;b(Lcpw;Ljava/lang/String;)Ljava/util/Optional;
    • loadPlayerData

      public Optional<NbtCompound> loadPlayerData(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named loadPlayerData Lnet/minecraft/world/PlayerSaveHandler;loadPlayerData(Lnet/minecraft/entity/player/PlayerEntity;)Ljava/util/Optional;
      intermediary method_55789 Lnet/minecraft/class_29;method_55789(Lnet/minecraft/class_1657;)Ljava/util/Optional;
      official b Lewf;b(Lcpw;)Ljava/util/Optional;