Package net.minecraft.util.worldupdate
Class WorldUpgrader
java.lang.Object
net.minecraft.util.worldupdate.WorldUpgrader
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final com.mojang.datafixers.DataFixer
private final boolean
private boolean
private final Set<ResourceKey<Level>>
private final LevelStorageSource.LevelStorageAccess
private static final org.slf4j.Logger
private final DimensionDataStorage
private float
private final it.unimi.dsi.fastutil.objects.Object2FloatMap<ResourceKey<Level>>
private static final Pattern
private boolean
private int
private Component
private final Thread
private static final ThreadFactory
private int
-
Constructor Summary
ConstructorDescriptionWorldUpgrader
(LevelStorageSource.LevelStorageAccess p_249922_, com.mojang.datafixers.DataFixer p_250273_, Registry<LevelStem> p_252191_, boolean p_250738_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
float
dimensionProgress
(ResourceKey<Level> p_18828_) getAllChunkPos
(ResourceKey<Level> p_18831_) int
float
int
int
boolean
levels()
private void
work()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
THREAD_FACTORY
-
dimensions
-
levels
-
eraseCache
private final boolean eraseCache -
levelStorage
-
thread
-
dataFixer
private final com.mojang.datafixers.DataFixer dataFixer -
running
private volatile boolean running -
finished
private volatile boolean finished -
progress
private volatile float progress -
totalChunks
private volatile int totalChunks -
converted
private volatile int converted -
skipped
private volatile int skipped -
progressMap
-
status
-
REGEX
-
overworldDataStorage
-
-
Constructor Details
-
WorldUpgrader
public WorldUpgrader(LevelStorageSource.LevelStorageAccess p_249922_, com.mojang.datafixers.DataFixer p_250273_, Registry<LevelStem> p_252191_, boolean p_250738_)
-
-
Method Details
-
cancel
public void cancel() -
work
private void work() -
getAllChunkPos
-
isFinished
public boolean isFinished() -
levels
-
dimensionProgress
-
getProgress
public float getProgress() -
getTotalChunks
public int getTotalChunks() -
getConverted
public int getConverted() -
getSkipped
public int getSkipped() -
getStatus
-