Class LevelStorage.Session

java.lang.Object
net.minecraft.world.level.storage.LevelStorage.Session
All Implemented Interfaces:
AutoCloseable
Enclosing class:
LevelStorage

public class LevelStorage.Session
extends Object
implements AutoCloseable
Mappings:
Namespace Name
official ddu$a
intermediary net/minecraft/class_32$class_5143
named net/minecraft/world/level/storage/LevelStorage$Session
  • Field Details

    • lock

      private final SessionLock lock
      Mappings:
      Namespace Name Mixin selector
      official b Lddu$a;b:Lafo;
      intermediary field_23767 Lnet/minecraft/class_32$class_5143;field_23767:Lnet/minecraft/class_5125;
      named lock Lnet/minecraft/world/level/storage/LevelStorage$Session;lock:Lnet/minecraft/world/level/storage/SessionLock;
    • directory

      private final Path directory
      Mappings:
      Namespace Name Mixin selector
      official c Lddu$a;c:Ljava/nio/file/Path;
      intermediary field_23768 Lnet/minecraft/class_32$class_5143;field_23768:Ljava/nio/file/Path;
      named directory Lnet/minecraft/world/level/storage/LevelStorage$Session;directory:Ljava/nio/file/Path;
    • directoryName

      private final String directoryName
      Mappings:
      Namespace Name Mixin selector
      official d Lddu$a;d:Ljava/lang/String;
      intermediary field_23769 Lnet/minecraft/class_32$class_5143;field_23769:Ljava/lang/String;
      named directoryName Lnet/minecraft/world/level/storage/LevelStorage$Session;directoryName:Ljava/lang/String;
    • paths

      private final Map<WorldSavePath,​Path> paths
      Mappings:
      Namespace Name Mixin selector
      official e Lddu$a;e:Ljava/util/Map;
      intermediary field_24190 Lnet/minecraft/class_32$class_5143;field_24190:Ljava/util/Map;
      named paths Lnet/minecraft/world/level/storage/LevelStorage$Session;paths:Ljava/util/Map;
  • Constructor Details

    • Session

      public Session​(String directoryName) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official <init> Lddu$a;<init>(Lddu;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_32$class_5143;<init>(Lnet/minecraft/class_32;Ljava/lang/String;)V
      named <init> Lnet/minecraft/world/level/storage/LevelStorage$Session;<init>(Lnet/minecraft/world/level/storage/LevelStorage;Ljava/lang/String;)V
  • Method Details

    • getDirectoryName

      public String getDirectoryName()
      Mappings:
      Namespace Name Mixin selector
      official a Lddu$a;a()Ljava/lang/String;
      intermediary method_27005 Lnet/minecraft/class_32$class_5143;method_27005()Ljava/lang/String;
      named getDirectoryName Lnet/minecraft/world/level/storage/LevelStorage$Session;getDirectoryName()Ljava/lang/String;
    • getDirectory

      public Path getDirectory​(WorldSavePath savePath)
      Mappings:
      Namespace Name Mixin selector
      official a Lddu$a;a(Ldds;)Ljava/nio/file/Path;
      intermediary method_27010 Lnet/minecraft/class_32$class_5143;method_27010(Lnet/minecraft/class_5218;)Ljava/nio/file/Path;
      named getDirectory Lnet/minecraft/world/level/storage/LevelStorage$Session;getDirectory(Lnet/minecraft/util/WorldSavePath;)Ljava/nio/file/Path;
    • getWorldDirectory

      public File getWorldDirectory​(RegistryKey<World> key)
      Mappings:
      Namespace Name Mixin selector
      official a Lddu$a;a(Lwa;)Ljava/io/File;
      intermediary method_27424 Lnet/minecraft/class_32$class_5143;method_27424(Lnet/minecraft/class_5321;)Ljava/io/File;
      named getWorldDirectory Lnet/minecraft/world/level/storage/LevelStorage$Session;getWorldDirectory(Lnet/minecraft/util/registry/RegistryKey;)Ljava/io/File;
    • checkValid

      private void checkValid()
      Mappings:
      Namespace Name Mixin selector
      official i Lddu$a;i()V
      intermediary method_27017 Lnet/minecraft/class_32$class_5143;method_27017()V
      named checkValid Lnet/minecraft/world/level/storage/LevelStorage$Session;checkValid()V
    • createSaveHandler

      public WorldSaveHandler createSaveHandler()
      Mappings:
      Namespace Name Mixin selector
      official b Lddu$a;b()Lddy;
      intermediary method_27427 Lnet/minecraft/class_32$class_5143;method_27427()Lnet/minecraft/class_29;
      named createSaveHandler Lnet/minecraft/world/level/storage/LevelStorage$Session;createSaveHandler()Lnet/minecraft/world/WorldSaveHandler;
    • needsConversion

      public boolean needsConversion()
      Mappings:
      Namespace Name Mixin selector
      official c Lddu$a;c()Z
      intermediary method_27012 Lnet/minecraft/class_32$class_5143;method_27012()Z
      named needsConversion Lnet/minecraft/world/level/storage/LevelStorage$Session;needsConversion()Z
    • convert

      public boolean convert​(ProgressListener progressListener)
      Mappings:
      Namespace Name Mixin selector
      official a Lddu$a;a(Lagd;)Z
      intermediary method_27006 Lnet/minecraft/class_32$class_5143;method_27006(Lnet/minecraft/class_3536;)Z
      named convert Lnet/minecraft/world/level/storage/LevelStorage$Session;convert(Lnet/minecraft/util/ProgressListener;)Z
    • getLevelSummary

      @Nullable public LevelSummary getLevelSummary()
      Mappings:
      Namespace Name Mixin selector
      official d Lddu$a;d()Lddv;
      intermediary method_29584 Lnet/minecraft/class_32$class_5143;method_29584()Lnet/minecraft/class_34;
      named getLevelSummary Lnet/minecraft/world/level/storage/LevelStorage$Session;getLevelSummary()Lnet/minecraft/world/level/storage/LevelSummary;
    • readLevelProperties

      @Nullable public SaveProperties readLevelProperties​(com.mojang.serialization.DynamicOps<Tag> dynamicOps, DataPackSettings dataPackSettings)
      Mappings:
      Namespace Name Mixin selector
      official a Lddu$a;a(Lcom/mojang/serialization/DynamicOps;Lbti;)Ldeb;
      intermediary method_27013 Lnet/minecraft/class_32$class_5143;method_27013(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_5359;)Lnet/minecraft/class_5219;
      named readLevelProperties Lnet/minecraft/world/level/storage/LevelStorage$Session;readLevelProperties(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/resource/DataPackSettings;)Lnet/minecraft/world/SaveProperties;
    • getDataPackSettings

      @Nullable public DataPackSettings getDataPackSettings()
      Mappings:
      Namespace Name Mixin selector
      official e Lddu$a;e()Lbti;
      intermediary method_29585 Lnet/minecraft/class_32$class_5143;method_29585()Lnet/minecraft/class_5359;
      named getDataPackSettings Lnet/minecraft/world/level/storage/LevelStorage$Session;getDataPackSettings()Lnet/minecraft/resource/DataPackSettings;
    • backupLevelDataFile

      public void backupLevelDataFile​(DynamicRegistryManager dynamicRegistryManager, SaveProperties saveProperties)
      Mappings:
      Namespace Name Mixin selector
      official a Lddu$a;a(Lgo;Ldeb;)V
      intermediary method_27425 Lnet/minecraft/class_32$class_5143;method_27425(Lnet/minecraft/class_5455;Lnet/minecraft/class_5219;)V
      named backupLevelDataFile Lnet/minecraft/world/level/storage/LevelStorage$Session;backupLevelDataFile(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/world/SaveProperties;)V
    • backupLevelDataFile

      public void backupLevelDataFile​(DynamicRegistryManager dynamicRegistryManager, SaveProperties saveProperties, @Nullable CompoundTag compoundTag)
      Mappings:
      Namespace Name Mixin selector
      official a Lddu$a;a(Lgo;Ldeb;Lmq;)V
      intermediary method_27426 Lnet/minecraft/class_32$class_5143;method_27426(Lnet/minecraft/class_5455;Lnet/minecraft/class_5219;Lnet/minecraft/class_2487;)V
      named backupLevelDataFile Lnet/minecraft/world/level/storage/LevelStorage$Session;backupLevelDataFile(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/world/SaveProperties;Lnet/minecraft/nbt/CompoundTag;)V
    • getIconFile

      public File getIconFile()
      Mappings:
      Namespace Name Mixin selector
      official f Lddu$a;f()Ljava/io/File;
      intermediary method_27014 Lnet/minecraft/class_32$class_5143;method_27014()Ljava/io/File;
      named getIconFile Lnet/minecraft/world/level/storage/LevelStorage$Session;getIconFile()Ljava/io/File;
    • deleteSessionLock

      @Environment(CLIENT) public void deleteSessionLock() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official g Lddu$a;g()V
      intermediary method_27015 Lnet/minecraft/class_32$class_5143;method_27015()V
      named deleteSessionLock Lnet/minecraft/world/level/storage/LevelStorage$Session;deleteSessionLock()V
    • save

      @Environment(CLIENT) public void save​(String name) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lddu$a;a(Ljava/lang/String;)V
      intermediary method_27008 Lnet/minecraft/class_32$class_5143;method_27008(Ljava/lang/String;)V
      named save Lnet/minecraft/world/level/storage/LevelStorage$Session;save(Ljava/lang/String;)V
    • createBackup

      @Environment(CLIENT) public long createBackup() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official h Lddu$a;h()J
      intermediary method_27016 Lnet/minecraft/class_32$class_5143;method_27016()J
      named createBackup Lnet/minecraft/world/level/storage/LevelStorage$Session;createBackup()J
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official close Lddu$a;close()V
      intermediary close Lnet/minecraft/class_32$class_5143;close()V
      named close Lnet/minecraft/world/level/storage/LevelStorage$Session;close()V