Package net.minecraft.util.worldupdate
Class WorldUpgrader
java.lang.Object
net.minecraft.util.worldupdate.WorldUpgrader
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private com.mojang.datafixers.DataFixer
private boolean
private boolean
private com.google.common.collect.ImmutableSet<ResourceKey<Level>>
private static org.apache.logging.log4j.Logger
private DimensionDataStorage
private float
private it.unimi.dsi.fastutil.objects.Object2FloatMap<ResourceKey<Level>>
private static Pattern
private boolean
private int
private Component
private Thread
private static ThreadFactory
private int
-
Constructor Summary
ConstructorDescriptionWorldUpgrader(LevelStorageSource.LevelStorageAccess p_18816_, com.mojang.datafixers.DataFixer p_18817_, com.google.common.collect.ImmutableSet<ResourceKey<Level>> p_18818_, boolean p_18819_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
float
dimensionProgress(ResourceKey<Level> p_18828_)
getAllChunkPos(ResourceKey<Level> p_18831_)
int
float
int
int
boolean
com.google.common.collect.ImmutableSet<ResourceKey<Level>>
levels()
private void
work()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
THREAD_FACTORY
-
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_18816_, com.mojang.datafixers.DataFixer p_18817_, com.google.common.collect.ImmutableSet<ResourceKey<Level>> p_18818_, boolean p_18819_)
-
-
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
-