net.minecraft.world.level.storage

public class LevelStorage$Session

implements AutoCloseable

net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess
net.minecraft.class_32$class_5143
net.minecraft.world.level.storage.LevelStorage$Session

Field summary

Modifier and TypeField
private SessionLock
lock
field_23767
lock
private final LevelStorage$LevelSave
levelDirectory
field_23768
directory
private final String
levelId
field_23769
directoryName
private final Map<WorldSavePath, Path>
resources
field_24190
paths
final LevelStorage
this$0
field_23766
field_23766

Constructor summary

ModifierConstructor
private (LevelStorage this$0, String directoryName, Path path)

Method summary

Modifier and TypeMethod
private void
createLock()
method_1_1887()
createSessionLock()
public void
releaseTemporarilyAndRun(org.apache.commons.io.function.IORunnable runnable)
method_1_1891(org.apache.commons.io.function.IORunnable arg0)
temporarilyUnlockSession(org.apache.commons.io.function.IORunnable runnable)
public long
estimateDiskSpace()
method_57628()
getUsableSpace()
public boolean
checkForLowDiskSpace()
method_57629()
shouldShowLowDiskSpaceWarning()
public void
safeClose()
method_54532()
tryClose()
public LevelStorage
parent()
method_52617()
getLevelStorage()
public LevelStorage$LevelSave
getLevelDirectory()
method_54543()
getDirectory()
public String
getLevelId()
method_27005()
getDirectoryName()
public Path
getLevelPath(LevelResource resource)
method_27010(class_5218 arg0)
getDirectory(WorldSavePath savePath)
public Path
getDimensionPath(ResourceKey<Level> name)
method_27424(class_5321<class_1937> arg0)
getWorldDirectory(RegistryKey<World> key)
private void
checkLock()
method_27017()
checkValid()
public PlayerSaveHandler
createPlayerStorage()
method_27427()
createSaveHandler()
public void
collectIssues(boolean useFallback)
method_1_1886(boolean arg0)
loadDiagnostically(boolean old)
public LevelSummary
fixAndGetSummary()
method_1_1888()
getLevelSummary()
public LevelSummary
fixAndGetSummaryFromTag(com.mojang.serialization.Dynamic<?> dataTag)
method_29584(com.mojang.serialization.Dynamic<?> arg0)
getLevelSummary(com.mojang.serialization.Dynamic<?> dynamic)
public com.mojang.serialization.Dynamic<?>
getUnfixedDataTagWithFallback()
method_1_1890()
readLevelProperties()
public com.mojang.serialization.Dynamic<?>
getUnfixedDataTag(boolean useFallback)
method_1_1889(boolean arg0)
readLevelProperties(boolean old)
private Path
getDataFile(boolean useFallback)
method_27013(boolean arg0)
getLevelPropertiesPath(boolean old)
public void
saveDataTag(WorldData levelData)
method_27425(class_5219 arg0)
backupLevelDataFile(SaveProperties saveProperties)
public void
saveDataTag(WorldData levelData, UUID singleplayerUUID)
method_27426(class_5219 arg0, UUID arg1)
backupLevelDataFile(SaveProperties saveProperties, UUID singleplayerUuid)
public void
saveLevelData(com.mojang.serialization.Dynamic<?> tag)
method_1_1892(com.mojang.serialization.Dynamic<?> arg0)
backupLevelDataFile(com.mojang.serialization.Dynamic<?> contents)
private void
saveLevelData(CompoundTag root)
method_54538(class_2487 arg0)
save(NbtCompound nbt)
public Optional<Path>
getIconFile()
method_27014()
getIconFile()
public void
deleteLevel()
method_27015()
deleteSessionLock()
public void
renameLevel(String newName)
method_27008(String arg0)
save(String name)
public void
renameAndDropPlayer(String newName)
method_54540(String arg0)
removePlayerAndSave(String name)
private void
modifyLevelDataWithoutDatafix(Consumer<CompoundTag> updater)
method_54537(Consumer<class_2487> arg0)
save(Consumer<NbtCompound> nbtProcessor)
public long
makeWorldBackup()
method_27016()
createBackup()
public boolean
hasWorldData()
method_54547()
levelDatExists()
public void
close()
public boolean
restoreLevelDataFromOld()
method_54548()
tryRestoreBackup()
public Instant
getFileModificationTime(boolean fallback)
method_54539(boolean arg0)
getLastModifiedTime(boolean old)
private static void
lambda$renameAndDropPlayer$0(String arg0, CompoundTag arg1)
method_54534(String arg0, class_2487 arg1)
method_54534(String arg0, NbtCompound nbt)
private static void
lambda$renameLevel$0(String arg0, CompoundTag arg1)
method_54541(String arg0, class_2487 arg1)
method_54541(String arg0, NbtCompound nbt)