net.minecraft.world.updater

public class WorldUpdater

implements AutoCloseable

net.minecraft.util.worldupdate.WorldUpgrader
net.minecraft.class_1257
net.minecraft.world.updater.WorldUpdater

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_5756
LOGGER
private static final ThreadFactory
THREAD_FACTORY
field_5757
UPDATE_THREAD_FACTORY
private final WorldUpdateDescriber
statusTranslator
field_1_208
describer
private final Registry<DimensionOptions>
dimensions
field_40113
dimensionOptionsRegistry
private final Set<RegistryKey<World>>
levels
field_40114
worldKeys
private final boolean
eraseCache
field_19225
eraseCache
private final boolean
recreateRegionFiles
field_48730
recreateRegionFiles
private final LevelStorage$Session
levelStorage
field_24083
session
private final Thread
thread
field_5767
updateThread
private final com.mojang.datafixers.DataFixer
dataFixer
field_24084
dataFixer
private final WorldUpdateProgress
upgradeProgress
field_1_209
worldUpdateProgress
private final PersistentStateManager
overworldSavedDataStorage
field_5755
persistentStateManager

Constructor summary

ModifierConstructor
public (LevelStorage$Session session, com.mojang.datafixers.DataFixer dataFixer, DynamicRegistryManager registries, boolean eraseCache, boolean recreateRegionFiles)

Method summary

Modifier and TypeMethod
public static NbtCompound
getDataFixContextTag(Registry<LevelStem> dimensions, ResourceKey<Level> dimension)
method_1_479(class_2378<class_5363> arg0, class_5321<class_1937> arg1)
getContextNbt(Registry<DimensionOptions> dimensionOptionsRegistry, RegistryKey<World> dimension)
public static boolean
verifyChunkPosAndEraseCache(ChunkPos pos, CompoundTag upgradedTag)
method_1_487(class_1923 arg0, class_2487 arg1)
eraseCaches(ChunkPos chunkPos, NbtCompound tag)
public static boolean
verifyChunkPos(ChunkPos pos, CompoundTag upgradedTag)
method_1_486(class_1923 arg0, class_2487 arg1)
verifyChunkPos(ChunkPos chunkPos, NbtCompound tag)
public void
cancel()
method_5402()
cancel()
private void
work()
method_1_488()
upgrade()
private void
upgradeLevels(DataFixTypes dataFixType, RegionStorageUpgrader$Builder builder)
method_1_484(class_4284 arg0, class_1_43$class_1_44 arg1)
upgrade(DataFixType dataFixType, RegionStorageUpgrader$Builder builder)
private void
upgradeLevels(DataFixTypes dataFixType, RegionStorageUpgrader$Builder builder, BiFunction<RegionStorageUpgrader$Builder, ResourceKey<Level>, RegionStorageUpgrader$Builder> levelSpecificBuilder)
method_1_485(class_4284 arg0, class_1_43$class_1_44 arg1, BiFunction<class_1_43$class_1_44, class_5321<class_1937>, class_1_43$class_1_44> arg2)
upgrade(DataFixType dataFixType, RegionStorageUpgrader$Builder builder, BiFunction<RegionStorageUpgrader$Builder, RegistryKey<World>, RegionStorageUpgrader$Builder> dimensionSpecificUpgradeSettings)
public boolean
isFinished()
method_5403()
isDone()
public Set<RegistryKey<World>>
levels()
method_28304()
getWorlds()
public float
dimensionProgress(ResourceKey<Level> dimension)
method_5393(class_5321<class_1937> arg0)
getProgress(RegistryKey<World> world)
public float
getTotalProgress()
method_5401()
getProgress()
public int
getTotalChunks()
method_5397()
getTotalChunkCount()
public int
getConverted()
method_5400()
getUpgradedChunkCount()
public int
getSkipped()
method_5399()
getSkippedChunkCount()
public Text
getStatus()
method_5394()
getStatus()
public void
close()
private static RegionStorageUpgrader$Builder
lambda$upgradeLevels$0(RegionStorageUpgrader$Builder arg0, ResourceKey arg1)
method_1_481(class_1_43$class_1_44 arg0, class_5321 arg1)
method_1_481(RegionStorageUpgrader$Builder builder, RegistryKey dimension)
private RegionStorageUpgrader$Builder
lambda$work$0(int arg0, RegionStorageUpgrader$Builder arg1, ResourceKey arg2)
method_1_482(int arg0, class_1_43$class_1_44 arg1, class_5321 arg2)
method_1_482(int arg0, RegionStorageUpgrader$Builder builder, RegistryKey dimension)
private void
lambda$new$0(Thread arg0, Throwable arg1)
method_1_480(Thread arg0, Throwable arg1)
method_1_480(Thread arg0, Throwable arg1)