Package net.minecraft.world.storage
Class SaveFormat.LevelSave
java.lang.Object
net.minecraft.world.storage.SaveFormat.LevelSave
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- SaveFormat
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private final Path
private final SessionLockManager
private final Map<FolderName,
Path> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
close()
boolean
convertLevel
(IProgressUpdate p_237283_1_) void
getDataTag
(com.mojang.serialization.DynamicOps<INBT> p_237284_1_, DatapackCodec p_237284_2_) getDimensionPath
(RegistryKey<World> p_237291_1_) getLevelPath
(FolderName p_237285_1_) long
void
renameLevel
(String p_237290_1_) boolean
void
saveDataTag
(DynamicRegistries p_237287_1_, IServerConfiguration p_237287_2_) void
saveDataTag
(DynamicRegistries p_237288_1_, IServerConfiguration p_237288_2_, CompoundNBT p_237288_3_)
-
Field Details
-
lock
-
levelPath
-
levelId
-
resources
-
-
Constructor Details
-
LevelSave
- Throws:
IOException
-
-
Method Details
-
getLevelId
-
getLevelPath
-
getDimensionPath
-
checkLock
private void checkLock() -
createPlayerStorage
-
requiresConversion
public boolean requiresConversion() -
convertLevel
-
getSummary
-
getDataTag
@Nullable public IServerConfiguration getDataTag(com.mojang.serialization.DynamicOps<INBT> p_237284_1_, DatapackCodec p_237284_2_) -
getDataPacks
-
saveDataTag
-
saveDataTag
public void saveDataTag(DynamicRegistries p_237288_1_, IServerConfiguration p_237288_2_, @Nullable CompoundNBT p_237288_3_) -
getIconFile
-
getWorldDir
-
deleteLevel
- Throws:
IOException
-
renameLevel
- Throws:
IOException
-
makeWorldBackup
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-