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
-
Field Summary
Fields Modifier and Type Field Description private Pathdirectoryprivate StringdirectoryNameprivate Map<WorldSavePath,Path>field_24190private SessionLocklock -
Constructor Summary
-
Method Summary
Modifier and Type Method Description private voidcheckValid()voidclose()booleanconvert(ProgressListener progressListener)longcreateBackup()voiddeleteSessionLock()PathgetDirectory(WorldSavePath worldSavePath)StringgetDirectoryName()FilegetIconFile()Filemethod_27424(RegistryKey<World> registryKey)voidmethod_27425(RegistryTracker registryTracker, SaveProperties saveProperties)voidmethod_27426(RegistryTracker registryTracker, SaveProperties saveProperties, CompoundTag compoundTag)WorldSaveHandlermethod_27427()LevelSummarymethod_29584()DataPackSettingsmethod_29585()booleanneedsConversion()SavePropertiesreadLevelProperties(com.mojang.serialization.DynamicOps<Tag> dynamicOps, DataPackSettings dataPackSettings)voidsave(String name)
-
Field Details
-
Constructor Details
-
Session
- Throws:
IOException
-
-
Method Details
-
getDirectoryName
-
getDirectory
-
method_27424
-
checkValid
private void checkValid() -
method_27427
-
needsConversion
public boolean needsConversion() -
convert
-
method_29584
-
readLevelProperties
@Nullable public SaveProperties readLevelProperties(com.mojang.serialization.DynamicOps<Tag> dynamicOps, DataPackSettings dataPackSettings) -
method_29585
-
method_27425
-
method_27426
public void method_27426(RegistryTracker registryTracker, SaveProperties saveProperties, @Nullable CompoundTag compoundTag) -
getIconFile
-
deleteSessionLock
- Throws:
IOException
-
save
- Throws:
IOException
-
createBackup
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-