Class LevelStorage.Session
java.lang.Object
net.minecraft.world.level.storage.LevelStorage.Session
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
LevelStorage
- Mappings:
Namespace Name official dyy$c
intermediary net/minecraft/class_32$class_5143
named net/minecraft/world/level/storage/LevelStorage$Session
-
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) @Nullable com.mojang.datafixers.util.Pair<SaveProperties,
DimensionOptionsRegistryHolder.DimensionsConfig> readLevelProperties
(com.mojang.serialization.DynamicOps<NbtElement> ops, DataConfiguration dataConfiguration, Registry<DimensionOptions> dimensionOptionsRegistry, com.mojang.serialization.Lifecycle lifecycle) void
-
Field Details
-
lock
- Mappings:
Namespace Name Mixin selector official b
Ldyy$c;b:Laog;
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
- Mappings:
Namespace Name Mixin selector official c
Ldyy$c;c:Ldyy$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
- Mappings:
Namespace Name Mixin selector official d
Ldyy$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
- Mappings:
Namespace Name Mixin selector official e
Ldyy$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>
Ldyy$c;<init>(Ldyy;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
-
getDirectoryName
- Mappings:
Namespace Name Mixin selector official a
Ldyy$c;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
- Mappings:
Namespace Name Mixin selector official a
Ldyy$c;a(Ldyw;)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
- Mappings:
Namespace Name Mixin selector official a
Ldyy$c;a(Lacp;)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 h
Ldyy$c;h()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
- Mappings:
Namespace Name Mixin selector official b
Ldyy$c;b()Ldzb;
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
- Mappings:
Namespace Name Mixin selector official c
Ldyy$c;c()Ldyz;
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 @Nullable com.mojang.datafixers.util.Pair<SaveProperties,DimensionOptionsRegistryHolder.DimensionsConfig> readLevelProperties(com.mojang.serialization.DynamicOps<NbtElement> ops, DataConfiguration dataConfiguration, Registry<DimensionOptions> dimensionOptionsRegistry, com.mojang.serialization.Lifecycle lifecycle) - Mappings:
Namespace Name Mixin selector official a
Ldyy$c;a(Lcom/mojang/serialization/DynamicOps;Lcnf;Lhr;Lcom/mojang/serialization/Lifecycle;)Lcom/mojang/datafixers/util/Pair;
intermediary method_27013
Lnet/minecraft/class_32$class_5143;method_27013(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_7712;Lnet/minecraft/class_2378;Lcom/mojang/serialization/Lifecycle;)Lcom/mojang/datafixers/util/Pair;
named readLevelProperties
Lnet/minecraft/world/level/storage/LevelStorage$Session;readLevelProperties(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/resource/DataConfiguration;Lnet/minecraft/registry/Registry;Lcom/mojang/serialization/Lifecycle;)Lcom/mojang/datafixers/util/Pair;
-
getDataPackSettings
- Mappings:
Namespace Name Mixin selector official d
Ldyy$c;d()Lcnf;
intermediary method_29585
Lnet/minecraft/class_32$class_5143;method_29585()Lnet/minecraft/class_7712;
named getDataPackSettings
Lnet/minecraft/world/level/storage/LevelStorage$Session;getDataPackSettings()Lnet/minecraft/resource/DataConfiguration;
-
backupLevelDataFile
public void backupLevelDataFile(DynamicRegistryManager registryManager, SaveProperties saveProperties) - Mappings:
Namespace Name Mixin selector official a
Ldyy$c;a(Lhs;Ldze;)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
Ldyy$c;a(Lhs;Ldze;Lqr;)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
-
getIconFile
- Mappings:
Namespace Name Mixin selector official e
Ldyy$c;e()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
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official f
Ldyy$c;f()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
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Ldyy$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
-
createBackup
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official g
Ldyy$c;g()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
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-