net.minecraft.world.updater

public class RegionStorageUpgrader

net.minecraft.util.worldupdate.RegionStorageUpgrader
net.minecraft.class_1_43
net.minecraft.world.updater.RegionStorageUpgrader

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_1_646
LOGGER
private static final String
NEW_DIRECTORY_PREFIX
field_1_647
NEW_PREFIX
private static final Pattern
REGEX
field_1_648
REGION_FILE_PATTERN
private final com.mojang.datafixers.DataFixer
dataFixer
field_1_651
dataFixer
private final WorldUpdateProgress
upgradeProgress
field_1_663
progress
private final String
type
field_1_662
type
private final String
folderName
field_1_655
directoryName
protected CompletableFuture<Void>
previousWriteFuture
field_1_657
setNbtFuture
protected final DataFixType
dataFixType
field_1_650
dataFixType
protected final int
defaultVersion
field_1_652
fallbackVersion
private final boolean
recreateRegionFiles
field_1_658
recreateRegionFiles
private RegistryKey<World>
dimensionKey
field_1_653
world
private VersionedChunkStorage
storage
field_1_660
versionedChunkStorage
private List<Region>
files
field_1_654
regions
private final int
startIndex
field_1_659
cumulativeRegionCount
private final NbtCompound
dataFixContextTag
field_1_649
context
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<RegionStorageUpgrader$Fixer>
tagModifiers
field_1_661
fixersByVersion

Constructor summary

ModifierConstructor
protected (com.mojang.datafixers.DataFixer dataFixer, DataFixType dataFixTypes, String type, String directoryName, int fallbackVersion, boolean recreateRegionFiles, WorldUpdateProgress progress, int cumulativeRegionCount, NbtCompound context, it.unimi.dsi.fastutil.ints.Int2ObjectMap<RegionStorageUpgrader$Fixer> fixersByVersion)

Method summary

Modifier and TypeMethod
public void
init(ResourceKey<Level> dimensionKey, LevelStorageSource$LevelStorageAccess levelStorage)
method_1_616(class_5321<class_1937> arg0, class_32$class_5143 arg1)
initialize(RegistryKey<World> world, LevelStorage$Session session)
public void
upgrade()
method_1_623()
upgrade()
protected final VersionedChunkStorage
createStorage(RegionStorageInfo info, Path regionFolder)
method_1_612(class_9240 arg0, Path arg1)
createVersionedChunkStorage(StorageKey key, Path directory)
private List<Region>
getFilesToProcess(RegionStorageInfo info, Path regionFolder)
method_1_615(class_9240 arg0, Path arg1)
getRegionsInDirectory(StorageKey key, Path directory)
public int
fileAmount()
method_1_613()
getRegionCount()
private static List<Region>
getAllChunkPositions(RegionStorageInfo info, Path regionFolder)
method_1_614(class_9240 arg0, Path arg1)
readRegionsInDirectory(StorageKey key, Path directory)
private boolean
processOnePosition(SimpleRegionStorage storage, ChunkPos pos)
method_1_620(class_3977 arg0, class_1923 arg1)
upgradeChunk(VersionedChunkStorage storage, ChunkPos chunkPos)
protected boolean
tryProcessOnePosition(SimpleRegionStorage storage, ChunkPos pos)
method_1_622(class_3977 arg0, class_1923 arg1)
doUpgradeChunk(VersionedChunkStorage storage, ChunkPos chunkPos)
protected NbtCompound
upgradeTag(SimpleRegionStorage storage, CompoundTag chunkTag, int targetVersion)
method_1_624(class_3977 arg0, class_2487 arg1, int arg2)
updateChunkNbt(VersionedChunkStorage storage, NbtCompound chunkNbt, int targetVersion)
private void
onFileFinished(RegionFile regionFile)
method_1_619(class_2861 arg0)
finish(RegionFile file)
protected static Path
resolveRecreateDirectory(Path directoryPath)
method_1_621(Path arg0)
getPathOfNew(Path path)
private static boolean
lambda$getAllChunkPositions$0(File arg0, String arg1)
method_1_617(File arg0, String arg1)
method_1_617(File arg0, String name)
private static int
lambda$getFilesToProcess$0(FileToUpgrade arg0)
method_1_618(class_9165 arg0)
method_1_618(Region region)