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 eeb$c
intermediary net/minecraft/class_32$class_5143
named net/minecraft/world/level/storage/LevelStorage$Session
  • Field Details

    • lock

      final SessionLock lock
      Mappings:
      Namespace Name Mixin selector
      official b Leeb$c;b:Laso;
      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

      final LevelStorage.LevelSave directory
      Mappings:
      Namespace Name Mixin selector
      official c Leeb$c;c:Leeb$b;
      intermediary field_23768 Lnet/minecraft/class_32$class_5143;field_23768:Lnet/minecraft/class_32$class_7411;
      named directory Lnet/minecraft/world/level/storage/LevelStorage$Session;directory:Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;
    • directoryName

      private final String directoryName
      Mappings:
      Namespace Name Mixin selector
      official d Leeb$c;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 Leeb$c;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

      Session(String directoryName, Path path) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official <init> Leeb$c;<init>(Leeb;Ljava/lang/String;Ljava/nio/file/Path;)V
      intermediary <init> Lnet/minecraft/class_32$class_5143;<init>(Lnet/minecraft/class_32;Ljava/lang/String;Ljava/nio/file/Path;)V
      named <init> Lnet/minecraft/world/level/storage/LevelStorage$Session;<init>(Lnet/minecraft/world/level/storage/LevelStorage;Ljava/lang/String;Ljava/nio/file/Path;)V
  • Method Details

    • method_54532

      public void method_54532()
      Mappings:
      Namespace Name Mixin selector
      official a Leeb$c;a()V
      intermediary method_54532 Lnet/minecraft/class_32$class_5143;method_54532()V
      named method_54532 Lnet/minecraft/world/level/storage/LevelStorage$Session;method_54532()V
    • getLevelStorage

      public LevelStorage getLevelStorage()
      Mappings:
      Namespace Name Mixin selector
      official b Leeb$c;b()Leeb;
      intermediary method_52617 Lnet/minecraft/class_32$class_5143;method_52617()Lnet/minecraft/class_32;
      named getLevelStorage Lnet/minecraft/world/level/storage/LevelStorage$Session;getLevelStorage()Lnet/minecraft/world/level/storage/LevelStorage;
    • method_54543

      public LevelStorage.LevelSave method_54543()
      Mappings:
      Namespace Name Mixin selector
      official c Leeb$c;c()Leeb$b;
      intermediary method_54543 Lnet/minecraft/class_32$class_5143;method_54543()Lnet/minecraft/class_32$class_7411;
      named method_54543 Lnet/minecraft/world/level/storage/LevelStorage$Session;method_54543()Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;
    • getDirectoryName

      public String getDirectoryName()
      Mappings:
      Namespace Name Mixin selector
      official d Leeb$c;d()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 Leeb$c;a(Ledz;)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 Path getWorldDirectory(RegistryKey<World> key)
      Mappings:
      Namespace Name Mixin selector
      official a Leeb$c;a(Lagf;)Ljava/nio/file/Path;
      intermediary method_27424 Lnet/minecraft/class_32$class_5143;method_27424(Lnet/minecraft/class_5321;)Ljava/nio/file/Path;
      named getWorldDirectory Lnet/minecraft/world/level/storage/LevelStorage$Session;getWorldDirectory(Lnet/minecraft/registry/RegistryKey;)Ljava/nio/file/Path;
    • checkValid

      private void checkValid()
      Mappings:
      Namespace Name Mixin selector
      official m Leeb$c;m()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 e Leeb$c;e()Leee;
      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;
    • getLevelSummary

      public LevelSummary getLevelSummary(com.mojang.serialization.Dynamic<?> dynamic)
      Mappings:
      Namespace Name Mixin selector
      official a Leeb$c;a(Lcom/mojang/serialization/Dynamic;)Leec;
      intermediary method_29584 Lnet/minecraft/class_32$class_5143;method_29584(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_34;
      named getLevelSummary Lnet/minecraft/world/level/storage/LevelStorage$Session;getLevelSummary(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/world/level/storage/LevelSummary;
    • method_54545

      public com.mojang.serialization.Dynamic<?> method_54545() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official f Leeb$c;f()Lcom/mojang/serialization/Dynamic;
      intermediary method_54545 Lnet/minecraft/class_32$class_5143;method_54545()Lcom/mojang/serialization/Dynamic;
      named method_54545 Lnet/minecraft/world/level/storage/LevelStorage$Session;method_54545()Lcom/mojang/serialization/Dynamic;
    • method_54546

      public com.mojang.serialization.Dynamic<?> method_54546() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official g Leeb$c;g()Lcom/mojang/serialization/Dynamic;
      intermediary method_54546 Lnet/minecraft/class_32$class_5143;method_54546()Lcom/mojang/serialization/Dynamic;
      named method_54546 Lnet/minecraft/world/level/storage/LevelStorage$Session;method_54546()Lcom/mojang/serialization/Dynamic;
    • readLevelProperties

      private com.mojang.serialization.Dynamic<?> readLevelProperties(boolean bool) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Leeb$c;b(Z)Lcom/mojang/serialization/Dynamic;
      intermediary method_27013 Lnet/minecraft/class_32$class_5143;method_27013(Z)Lcom/mojang/serialization/Dynamic;
      named readLevelProperties Lnet/minecraft/world/level/storage/LevelStorage$Session;readLevelProperties(Z)Lcom/mojang/serialization/Dynamic;
    • backupLevelDataFile

      public void backupLevelDataFile(DynamicRegistryManager registryManager, SaveProperties saveProperties)
      Mappings:
      Namespace Name Mixin selector
      official a Leeb$c;a(Lip;Leeh;)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/registry/DynamicRegistryManager;Lnet/minecraft/world/SaveProperties;)V
    • backupLevelDataFile

      public void backupLevelDataFile(DynamicRegistryManager registryManager, SaveProperties saveProperties, @Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Leeb$c;a(Lip;Leeh;Lrz;)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/registry/DynamicRegistryManager;Lnet/minecraft/world/SaveProperties;Lnet/minecraft/nbt/NbtCompound;)V
    • method_54538

      private void method_54538(NbtCompound nbtCompound)
      Mappings:
      Namespace Name Mixin selector
      official a Leeb$c;a(Lrz;)V
      intermediary method_54538 Lnet/minecraft/class_32$class_5143;method_54538(Lnet/minecraft/class_2487;)V
      named method_54538 Lnet/minecraft/world/level/storage/LevelStorage$Session;method_54538(Lnet/minecraft/nbt/NbtCompound;)V
    • getIconFile

      public Optional<Path> getIconFile()
      Mappings:
      Namespace Name Mixin selector
      official h Leeb$c;h()Ljava/util/Optional;
      intermediary method_27014 Lnet/minecraft/class_32$class_5143;method_27014()Ljava/util/Optional;
      named getIconFile Lnet/minecraft/world/level/storage/LevelStorage$Session;getIconFile()Ljava/util/Optional;
    • deleteSessionLock

      public void deleteSessionLock() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official i Leeb$c;i()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

      public void save(String name) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Leeb$c;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
    • method_54540

      public void method_54540(String string) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Leeb$c;b(Ljava/lang/String;)V
      intermediary method_54540 Lnet/minecraft/class_32$class_5143;method_54540(Ljava/lang/String;)V
      named method_54540 Lnet/minecraft/world/level/storage/LevelStorage$Session;method_54540(Ljava/lang/String;)V
    • method_54537

      private void method_54537(Consumer<NbtCompound> consumer) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Leeb$c;a(Ljava/util/function/Consumer;)V
      intermediary method_54537 Lnet/minecraft/class_32$class_5143;method_54537(Ljava/util/function/Consumer;)V
      named method_54537 Lnet/minecraft/world/level/storage/LevelStorage$Session;method_54537(Ljava/util/function/Consumer;)V
    • createBackup

      public long createBackup() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official j Leeb$c;j()J
      intermediary method_27016 Lnet/minecraft/class_32$class_5143;method_27016()J
      named createBackup Lnet/minecraft/world/level/storage/LevelStorage$Session;createBackup()J
    • method_54547

      public boolean method_54547()
      Mappings:
      Namespace Name Mixin selector
      official k Leeb$c;k()Z
      intermediary method_54547 Lnet/minecraft/class_32$class_5143;method_54547()Z
      named method_54547 Lnet/minecraft/world/level/storage/LevelStorage$Session;method_54547()Z
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException
    • method_54548

      public boolean method_54548()
      Mappings:
      Namespace Name Mixin selector
      official l Leeb$c;l()Z
      intermediary method_54548 Lnet/minecraft/class_32$class_5143;method_54548()Z
      named method_54548 Lnet/minecraft/world/level/storage/LevelStorage$Session;method_54548()Z
    • method_54539

      @Nullable public @Nullable Instant method_54539(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Leeb$c;a(Z)Ljava/time/Instant;
      intermediary method_54539 Lnet/minecraft/class_32$class_5143;method_54539(Z)Ljava/time/Instant;
      named method_54539 Lnet/minecraft/world/level/storage/LevelStorage$Session;method_54539(Z)Ljava/time/Instant;