Class LevelStorage.Session
java.lang.Object
net.minecraft.world.level.storage.LevelStorage.Session
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
LevelStorage
- Mappings:
Namespace Name named net/minecraft/world/level/storage/LevelStorage$Session
intermediary net/minecraft/class_32$class_5143
official epx$c
-
Field Summary
Modifier and TypeFieldDescription(package private) final LevelStorage.LevelSave
private final String
(package private) final SessionLock
private final Map
<WorldSavePath, Path> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
backupLevelDataFile
(DynamicRegistryManager registryManager, SaveProperties saveProperties) void
backupLevelDataFile
(DynamicRegistryManager registryManager, SaveProperties saveProperties, @Nullable NbtCompound nbt) private void
void
close()
long
void
getDirectory
(WorldSavePath savePath) getLastModifiedTime
(boolean old) getLevelSummary
(com.mojang.serialization.Dynamic<?> dynamic) long
boolean
com.mojang.serialization.Dynamic
<?> private com.mojang.serialization.Dynamic
<?> readLevelProperties
(boolean old) com.mojang.serialization.Dynamic
<?> void
removePlayerAndSave
(String name) void
private void
save
(Consumer<NbtCompound> nbtProcessor) private void
save
(NbtCompound nbt) boolean
void
tryClose()
boolean
-
Field Details
-
lock
- Mappings:
Namespace Name Mixin selector named lock
Lnet/minecraft/world/level/storage/LevelStorage$Session;lock:Lnet/minecraft/world/level/storage/SessionLock;
intermediary field_23767
Lnet/minecraft/class_32$class_5143;field_23767:Lnet/minecraft/class_5125;
official b
Lepx$c;b:Laye;
-
directory
- Mappings:
Namespace Name Mixin selector named directory
Lnet/minecraft/world/level/storage/LevelStorage$Session;directory:Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;
intermediary field_23768
Lnet/minecraft/class_32$class_5143;field_23768:Lnet/minecraft/class_32$class_7411;
official c
Lepx$c;c:Lepx$b;
-
directoryName
- Mappings:
Namespace Name Mixin selector named directoryName
Lnet/minecraft/world/level/storage/LevelStorage$Session;directoryName:Ljava/lang/String;
intermediary field_23769
Lnet/minecraft/class_32$class_5143;field_23769:Ljava/lang/String;
official d
Lepx$c;d:Ljava/lang/String;
-
paths
- Mappings:
Namespace Name Mixin selector named paths
Lnet/minecraft/world/level/storage/LevelStorage$Session;paths:Ljava/util/Map;
intermediary field_24190
Lnet/minecraft/class_32$class_5143;field_24190:Ljava/util/Map;
official e
Lepx$c;e:Ljava/util/Map;
-
-
Constructor Details
-
Session
Session(String directoryName, Path path) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/level/storage/LevelStorage$Session;<init>(Lnet/minecraft/world/level/storage/LevelStorage;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
official <init>
Lepx$c;<init>(Lepx;Ljava/lang/String;Ljava/nio/file/Path;)V
-
-
Method Details
-
getUsableSpace
public long getUsableSpace()- Mappings:
Namespace Name Mixin selector named getUsableSpace
Lnet/minecraft/world/level/storage/LevelStorage$Session;getUsableSpace()J
intermediary method_57628
Lnet/minecraft/class_32$class_5143;method_57628()J
official a
Lepx$c;a()J
-
shouldShowLowDiskSpaceWarning
public boolean shouldShowLowDiskSpaceWarning()- Mappings:
Namespace Name Mixin selector named shouldShowLowDiskSpaceWarning
Lnet/minecraft/world/level/storage/LevelStorage$Session;shouldShowLowDiskSpaceWarning()Z
intermediary method_57629
Lnet/minecraft/class_32$class_5143;method_57629()Z
official b
Lepx$c;b()Z
-
tryClose
public void tryClose()- Mappings:
Namespace Name Mixin selector named tryClose
Lnet/minecraft/world/level/storage/LevelStorage$Session;tryClose()V
intermediary method_54532
Lnet/minecraft/class_32$class_5143;method_54532()V
official c
Lepx$c;c()V
-
getLevelStorage
- Mappings:
Namespace Name Mixin selector named getLevelStorage
Lnet/minecraft/world/level/storage/LevelStorage$Session;getLevelStorage()Lnet/minecraft/world/level/storage/LevelStorage;
intermediary method_52617
Lnet/minecraft/class_32$class_5143;method_52617()Lnet/minecraft/class_32;
official d
Lepx$c;d()Lepx;
-
getDirectory
- Mappings:
Namespace Name Mixin selector named getDirectory
Lnet/minecraft/world/level/storage/LevelStorage$Session;getDirectory()Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;
intermediary method_54543
Lnet/minecraft/class_32$class_5143;method_54543()Lnet/minecraft/class_32$class_7411;
official e
Lepx$c;e()Lepx$b;
-
getDirectoryName
- Mappings:
Namespace Name Mixin selector named getDirectoryName
Lnet/minecraft/world/level/storage/LevelStorage$Session;getDirectoryName()Ljava/lang/String;
intermediary method_27005
Lnet/minecraft/class_32$class_5143;method_27005()Ljava/lang/String;
official f
Lepx$c;f()Ljava/lang/String;
-
getDirectory
- Mappings:
Namespace Name Mixin selector named getDirectory
Lnet/minecraft/world/level/storage/LevelStorage$Session;getDirectory(Lnet/minecraft/util/WorldSavePath;)Ljava/nio/file/Path;
intermediary method_27010
Lnet/minecraft/class_32$class_5143;method_27010(Lnet/minecraft/class_5218;)Ljava/nio/file/Path;
official a
Lepx$c;a(Lepv;)Ljava/nio/file/Path;
-
getWorldDirectory
- Mappings:
Namespace Name Mixin selector named getWorldDirectory
Lnet/minecraft/world/level/storage/LevelStorage$Session;getWorldDirectory(Lnet/minecraft/registry/RegistryKey;)Ljava/nio/file/Path;
intermediary method_27424
Lnet/minecraft/class_32$class_5143;method_27424(Lnet/minecraft/class_5321;)Ljava/nio/file/Path;
official a
Lepx$c;a(Lale;)Ljava/nio/file/Path;
-
checkValid
private void checkValid()- Mappings:
Namespace Name Mixin selector named checkValid
Lnet/minecraft/world/level/storage/LevelStorage$Session;checkValid()V
intermediary method_27017
Lnet/minecraft/class_32$class_5143;method_27017()V
official o
Lepx$c;o()V
-
createSaveHandler
- Mappings:
Namespace Name Mixin selector named createSaveHandler
Lnet/minecraft/world/level/storage/LevelStorage$Session;createSaveHandler()Lnet/minecraft/world/WorldSaveHandler;
intermediary method_27427
Lnet/minecraft/class_32$class_5143;method_27427()Lnet/minecraft/class_29;
official g
Lepx$c;g()Leqa;
-
getLevelSummary
- Mappings:
Namespace Name Mixin selector named getLevelSummary
Lnet/minecraft/world/level/storage/LevelStorage$Session;getLevelSummary(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/world/level/storage/LevelSummary;
intermediary method_29584
Lnet/minecraft/class_32$class_5143;method_29584(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_34;
official a
Lepx$c;a(Lcom/mojang/serialization/Dynamic;)Lepy;
-
readLevelProperties
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named readLevelProperties
Lnet/minecraft/world/level/storage/LevelStorage$Session;readLevelProperties()Lcom/mojang/serialization/Dynamic;
intermediary method_54545
Lnet/minecraft/class_32$class_5143;method_54545()Lcom/mojang/serialization/Dynamic;
official h
Lepx$c;h()Lcom/mojang/serialization/Dynamic;
-
readOldLevelProperties
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named readOldLevelProperties
Lnet/minecraft/world/level/storage/LevelStorage$Session;readOldLevelProperties()Lcom/mojang/serialization/Dynamic;
intermediary method_54546
Lnet/minecraft/class_32$class_5143;method_54546()Lcom/mojang/serialization/Dynamic;
official i
Lepx$c;i()Lcom/mojang/serialization/Dynamic;
-
readLevelProperties
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named readLevelProperties
Lnet/minecraft/world/level/storage/LevelStorage$Session;readLevelProperties(Z)Lcom/mojang/serialization/Dynamic;
intermediary method_27013
Lnet/minecraft/class_32$class_5143;method_27013(Z)Lcom/mojang/serialization/Dynamic;
official b
Lepx$c;b(Z)Lcom/mojang/serialization/Dynamic;
-
backupLevelDataFile
public void backupLevelDataFile(DynamicRegistryManager registryManager, SaveProperties saveProperties) - Mappings:
Namespace Name Mixin selector named backupLevelDataFile
Lnet/minecraft/world/level/storage/LevelStorage$Session;backupLevelDataFile(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/world/SaveProperties;)V
intermediary method_27425
Lnet/minecraft/class_32$class_5143;method_27425(Lnet/minecraft/class_5455;Lnet/minecraft/class_5219;)V
official a
Lepx$c;a(Ljw;Leqd;)V
-
backupLevelDataFile
public void backupLevelDataFile(DynamicRegistryManager registryManager, SaveProperties saveProperties, @Nullable @Nullable NbtCompound nbt) - Mappings:
Namespace Name Mixin selector named backupLevelDataFile
Lnet/minecraft/world/level/storage/LevelStorage$Session;backupLevelDataFile(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/world/SaveProperties;Lnet/minecraft/nbt/NbtCompound;)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
official a
Lepx$c;a(Ljw;Leqd;Lus;)V
-
save
- Mappings:
Namespace Name Mixin selector named save
Lnet/minecraft/world/level/storage/LevelStorage$Session;save(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_54538
Lnet/minecraft/class_32$class_5143;method_54538(Lnet/minecraft/class_2487;)V
official a
Lepx$c;a(Lus;)V
-
getIconFile
- Mappings:
Namespace Name Mixin selector named getIconFile
Lnet/minecraft/world/level/storage/LevelStorage$Session;getIconFile()Ljava/util/Optional;
intermediary method_27014
Lnet/minecraft/class_32$class_5143;method_27014()Ljava/util/Optional;
official j
Lepx$c;j()Ljava/util/Optional;
-
deleteSessionLock
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named deleteSessionLock
Lnet/minecraft/world/level/storage/LevelStorage$Session;deleteSessionLock()V
intermediary method_27015
Lnet/minecraft/class_32$class_5143;method_27015()V
official k
Lepx$c;k()V
-
save
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named save
Lnet/minecraft/world/level/storage/LevelStorage$Session;save(Ljava/lang/String;)V
intermediary method_27008
Lnet/minecraft/class_32$class_5143;method_27008(Ljava/lang/String;)V
official a
Lepx$c;a(Ljava/lang/String;)V
-
removePlayerAndSave
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named removePlayerAndSave
Lnet/minecraft/world/level/storage/LevelStorage$Session;removePlayerAndSave(Ljava/lang/String;)V
intermediary method_54540
Lnet/minecraft/class_32$class_5143;method_54540(Ljava/lang/String;)V
official b
Lepx$c;b(Ljava/lang/String;)V
-
save
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named save
Lnet/minecraft/world/level/storage/LevelStorage$Session;save(Ljava/util/function/Consumer;)V
intermediary method_54537
Lnet/minecraft/class_32$class_5143;method_54537(Ljava/util/function/Consumer;)V
official a
Lepx$c;a(Ljava/util/function/Consumer;)V
-
createBackup
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named createBackup
Lnet/minecraft/world/level/storage/LevelStorage$Session;createBackup()J
intermediary method_27016
Lnet/minecraft/class_32$class_5143;method_27016()J
official l
Lepx$c;l()J
-
levelDatExists
public boolean levelDatExists()- Mappings:
Namespace Name Mixin selector named levelDatExists
Lnet/minecraft/world/level/storage/LevelStorage$Session;levelDatExists()Z
intermediary method_54547
Lnet/minecraft/class_32$class_5143;method_54547()Z
official m
Lepx$c;m()Z
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
tryRestoreBackup
public boolean tryRestoreBackup()- Mappings:
Namespace Name Mixin selector named tryRestoreBackup
Lnet/minecraft/world/level/storage/LevelStorage$Session;tryRestoreBackup()Z
intermediary method_54548
Lnet/minecraft/class_32$class_5143;method_54548()Z
official n
Lepx$c;n()Z
-
getLastModifiedTime
- Mappings:
Namespace Name Mixin selector named getLastModifiedTime
Lnet/minecraft/world/level/storage/LevelStorage$Session;getLastModifiedTime(Z)Ljava/time/Instant;
intermediary method_54539
Lnet/minecraft/class_32$class_5143;method_54539(Z)Ljava/time/Instant;
official a
Lepx$c;a(Z)Ljava/time/Instant;
-