net.minecraft.datafixer.file

public class FileUpgrader

net.minecraft.util.filefix.FileFixerUpper
net.minecraft.class_1_193
net.minecraft.datafixer.file.FileUpgrader

Field summary

Modifier and TypeField
private static final int
FILE_FIXER_INTRODUCTION_VERSION
field_1_1426
FILE_REORGANIZATION_VERSION
private static final com.google.gson.Gson
GSON
field_1_1808
GSON
private static final String
FILE_FIX_DIRECTORY_NAME
field_1_1807
FILEFIX
private static final String
NEW_WORLD_TEMP_NAME
field_1_1809
NEW_WORLD
private static final String
UPGRADE_IN_PROGRESS_NAME
field_1_1810
UPGRADE_FILE_NAME
private static final org.slf4j.Logger
LOGGER
field_1_1427
LOGGER
private final com.mojang.datafixers.DataFixerBuilder$Result
dataFixer
field_1_1428
dataFixers
private final List<FileFix>
fileFixes
field_1_1429
fileFixes
private final int
latestFileFixerVersion
field_1_1430
maxVersion

Constructor summary

ModifierConstructor
public (com.mojang.datafixers.DataFixerBuilder$Result dataFixers, List<FileFix> fileFixes, int maxVersion)

Method summary

Modifier and TypeMethod
public static int
worldVersionToFileFixerVersion(int levelDataVersion)
method_1_1708(int arg0)
adjustVersion(int version)
public boolean
requiresFileFixing(int levelDataVersion)
method_1_1704(int arg0)
requiresFileFixing(int version)
public com.mojang.serialization.Dynamic<?>
fix(LevelStorageSource$LevelStorageAccess worldAccess, com.mojang.serialization.Dynamic<?> levelDataTag, UpgradeProgress upgradeProgress)
method_1_1699(class_32$class_5143 arg0, com.mojang.serialization.Dynamic<?> arg1, class_1_27 arg2)
upgradeFileStructure(LevelStorage$Session storageSession, com.mojang.serialization.Dynamic<?> levelProperties, WorldUpdateProgress progress)
public com.mojang.serialization.Dynamic<?>
fix(LevelStorageSource$LevelStorageAccess worldAccess, com.mojang.serialization.Dynamic<?> levelDataTag, UpgradeProgress upgradeProgress, int toVersion)
method_1_1700(class_32$class_5143 arg0, com.mojang.serialization.Dynamic<?> arg1, class_1_27 arg2, int arg3)
upgradeFileStructure(LevelStorage$Session storageSession, com.mojang.serialization.Dynamic<?> levelProperties, WorldUpdateProgress progress, int newVersion)
private List<FileMove>
startOrContinueFileFixing(UpgradeProgress upgradeProgress, int toVersion, Path worldFolder, Path tempWorld, Path fileFixDirectory, int loadedVersion)
method_1_2216(class_1_27 arg0, int arg1, Path arg2, Path arg3, Path arg4, int arg5)
enumerateFileMoves(WorldUpdateProgress progress, int newVersion, Path storageSessionDir, Path newWorldDir, Path filefixDir, int oldVersion)
private static void
deleteDirectory(Path directory)
method_1_2214(Path arg0)
cleanUpOldWorldDirectory(Path dir)
private static void
cleanup(Path fileFixDirectory)
method_1_2213(Path arg0)
cleanUpOldWorldDirectoryOrLogError(Path dir)
private List<FileMove>
applyFileFixersOnCow(UpgradeProgress upgradeProgress, int loadedVersion, int toVersion, Path worldFolder, Path fileFixDirectory, Path tempWorld)
method_1_2212(class_1_27 arg0, int arg1, int arg2, Path arg3, Path arg4, Path arg5)
upgrade(WorldUpdateProgress progress, int oldVersion, int newVersion, Path storageSessionDir, Path filefixDir, Path newWorldDir)
public void
applyFileFixers(UpgradeProgress upgradeProgress, int loadedVersion, int toVersion, Path basePath)
method_1_1696(class_1_27 arg0, int arg1, int arg2, Path arg3)
startUpgrading(WorldUpdateProgress progress, int oldVersion, int newVersion, Path directory)
private List<FileFix>
getApplicableFixers(int fromVersion, int toVersion)
method_1_1701(int arg0, int arg1)
getFileFixes(int oldVersion, int newVersion)
private void
countFiles(List<FileFix> applicableFixers, UpgradeProgress upgradeProgress)
method_1_1697(List<class_1_187> arg0, class_1_27 arg1)
count(List<FileFix> fileFixes, WorldUpdateProgress progress)
private void
writeUpdatedLevelData(Path worldFolder, int toVersion)
method_1_1709(Path arg0, int arg1)
fixLevelDat(Path directory, int newVersion)
private static com.mojang.serialization.Dynamic<?>
addVersionsToLevelData(com.mojang.serialization.Dynamic<?> fixed, int toVersion)
method_1_1695(com.mojang.serialization.Dynamic<?> arg0, int arg1)
writeVersionInfo(com.mojang.serialization.Dynamic<?> levelDat, int newVersion)
protected static void
swapInFixedWorld(LevelStorageSource$LevelStorageAccess worldAccess, List<FileMove> moves, Path fileFixDirectory, Path tempWorld)
method_1_1707(class_32$class_5143 arg0, List<class_1_322> arg1, Path arg2, Path arg3)
fixFilesInWorld(LevelStorage$Session session, List<FileMove> moves, Path filefixDir, Path newWorldDir)
private static void
writeMoves(List<FileMove> moves, Path fromDirectory, Path toDirectory, Path filePath)
method_1_2217(List<class_1_322> arg0, Path arg1, Path arg2, Path arg3)
saveMovesToUpdateProgress(List<FileMove> moves, Path storageSessionDir, Path newWorldDir, Path upgradeProgressFile)
private static List<FileMove>
readMoves(Path fromDirectory, Path toDirectory, Path filePath)
method_1_2215(Path arg0, Path arg1, Path arg2)
getMovesInUpdateProgress(Path storageSessionDir, Path newWorldDir, Path upgradeProgressFile)
public static FileSystemCapabilities
detectFileSystemCapabilities(Path dir)
method_1_1698(Path arg0)
getCapabilities(Path path)
private static boolean
supportsAtomicMove(Path dir)
method_1_1705(Path arg0)
isAtomicMoveSupported(Path path)
private static boolean
supportsHardLinks(Path dir)
method_1_1706(Path arg0)
areHardLinksSupported(Path path)
private static void
lambda$swapInFixedWorld$0(Path arg0, Path arg1, CopyOption[] arg2, Path arg3, FileSystemCapabilities arg4, org.apache.commons.lang3.mutable.MutableBoolean arg5)
method_1_1703(Path arg0, Path arg1, CopyOption[] arg2, Path arg3, class_1_195 arg4, org.apache.commons.lang3.mutable.MutableBoolean arg5)
method_1_1703(Path arg0, Path arg1, CopyOption[] arg2, Path arg3, FileSystemCapabilities arg4, org.apache.commons.lang3.mutable.MutableBoolean arg5)
private static boolean
lambda$getApplicableFixers$0(int arg0, int arg1, FileFix arg2)
method_1_1702(int arg0, int arg1, class_1_187 arg2)
method_1_1702(int arg0, int arg1, FileFix fixer)