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 static final String
NEW_DIRECTORY_PREFIX
field_48723
NEW_PREFIX
private static final Text
STATUS_UPGRADING_POI
field_48724
UPGRADING_POI_TEXT
private static final Text
STATUS_FINISHED_POI
field_48725
FINISHED_POI_TEXT
private static final Text
STATUS_UPGRADING_ENTITIES
field_48726
UPGRADING_ENTITIES_TEXT
private static final Text
STATUS_FINISHED_ENTITIES
field_48727
FINISHED_ENTITIES_TEXT
private static final Text
STATUS_UPGRADING_CHUNKS
field_48728
UPGRADING_CHUNKS_TEXT
private static final Text
STATUS_FINISHED_CHUNKS
field_48729
FINISHED_CHUNKS_TEXT
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 volatile boolean
running
field_5760
keepUpgradingChunks
private volatile boolean
finished
field_5759
done
private volatile float
progress
field_5763
progress
private volatile int
totalChunks
field_5768
totalChunkCount
private volatile int
totalFiles
field_48731
totalRegionCount
private volatile int
converted
field_5766
upgradedChunkCount
private volatile int
skipped
field_5764
skippedChunkCount
private final it.unimi.dsi.fastutil.objects.Reference2FloatMap<RegistryKey<World>>
progressMap
field_5762
dimensionProgress
private volatile Text
status
field_5765
status
private static final Pattern
REGEX
field_17622
REGION_FILE_PATTERN
private final PersistentStateManager
overworldDataStorage
field_5755
persistentStateManager

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
cancel()
method_5402()
cancel()
private void
work()
method_5404()
updateWorld()
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
getProgress()
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 Path
resolveRecreateDirectory(Path directoryPath)
method_56987(Path arg0)
getNewDirectoryPath(Path current)
private void
lambda$new$0(Thread arg0, Throwable arg1)
method_5398(Thread arg0, Throwable arg1)
method_5398(Thread thread, Throwable throwable)