Class LevelStorageSource.LevelStorageAccess
java.lang.Object
net.minecraft.world.level.storage.LevelStorageSource.LevelStorageAccess
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- LevelStorageSource
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
(package private) final Path
(package private) final DirectoryLock
private final Map<LevelResource,
Path> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
close()
void
getDataTag
(com.mojang.serialization.DynamicOps<Tag> p_211748_, DataPackConfig p_211749_, com.mojang.serialization.Lifecycle p_211750_) getDimensionPath
(ResourceKey<Level> p_197395_) getLevelPath
(LevelResource p_78284_) long
void
void
renameLevel
(String p_78298_) void
saveDataTag
(RegistryAccess p_78288_, WorldData p_78289_) void
saveDataTag
(RegistryAccess p_78291_, WorldData p_78292_, CompoundTag p_78293_)
-
Field Details
-
lock
-
levelPath
-
levelId
-
resources
-
-
Constructor Details
-
LevelStorageAccess
- Throws:
IOException
-
-
Method Details
-
getLevelId
-
getLevelPath
-
getDimensionPath
-
checkLock
private void checkLock() -
createPlayerStorage
-
getSummary
-
getDataTag
@Nullable public WorldData getDataTag(com.mojang.serialization.DynamicOps<Tag> p_211748_, DataPackConfig p_211749_, com.mojang.serialization.Lifecycle p_211750_) -
readAdditionalLevelSaveData
public void readAdditionalLevelSaveData() -
getDataPacks
-
saveDataTag
-
saveDataTag
public void saveDataTag(RegistryAccess p_78291_, WorldData p_78292_, @Nullable CompoundTag p_78293_) -
getIconFile
-
getWorldDir
-
deleteLevel
- Throws:
IOException
-
renameLevel
- Throws:
IOException
-
makeWorldBackup
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-