Class LevelStorageSource.LevelStorageAccess
java.lang.Object
net.minecraft.world.level.storage.LevelStorageSource.LevelStorageAccess
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- LevelStorageSource
-
Field Summary
Modifier and TypeFieldDescription(package private) final LevelStorageSource.LevelDirectory
private final String
(package private) final DirectoryLock
private final Map<LevelResource,
Path> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
close()
void
com.mojang.datafixers.util.Pair<WorldData,
WorldDimensions.Complete> getDataTag
(com.mojang.serialization.DynamicOps<Tag> p_248747_, WorldDataConfiguration p_251873_, Registry<LevelStem> p_249187_, com.mojang.serialization.Lifecycle p_249736_) 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
-
levelDirectory
-
levelId
-
resources
-
-
Constructor Details
-
LevelStorageAccess
LevelStorageAccess(String p_289967_, Path p_289988_) throws IOException - Throws:
IOException
-
-
Method Details
-
getLevelId
-
getLevelPath
-
getDimensionPath
-
checkLock
private void checkLock() -
createPlayerStorage
-
getSummary
-
getDataTag
@Nullable public com.mojang.datafixers.util.Pair<WorldData,WorldDimensions.Complete> getDataTag(com.mojang.serialization.DynamicOps<Tag> p_248747_, WorldDataConfiguration p_251873_, Registry<LevelStem> p_249187_, com.mojang.serialization.Lifecycle p_249736_) -
readAdditionalLevelSaveData
public void readAdditionalLevelSaveData() -
getDataConfiguration
-
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
-