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 String
(package private) Path
(package private) DirectoryLock
private Map<LevelResource,Path>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
close()
boolean
convertLevel(ProgressListener p_78279_)
void
getDataTag(com.mojang.serialization.DynamicOps<Tag> p_78281_, DataPackConfig p_78282_)
getDimensionPath(ResourceKey<Level> p_78300_)
getLevelPath(LevelResource p_78284_)
long
void
renameLevel(String p_78298_)
boolean
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
-
requiresConversion
public boolean requiresConversion() -
convertLevel
-
getSummary
-
getDataTag
@Nullable public WorldData getDataTag(com.mojang.serialization.DynamicOps<Tag> p_78281_, DataPackConfig p_78282_) -
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
-