Package net.minecraft.util.worldupdate
Class WorldUpgrader
java.lang.Object
net.minecraft.util.worldupdate.WorldUpgrader
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
WorldUpgrader.AbstractUpgrader<T extends AutoCloseable>
(package private) class
(package private) static final record
(package private) class
(package private) static final record
(package private) class
(package private) class
-
Field Summary
Modifier and TypeFieldDescription(package private) int
(package private) final com.mojang.datafixers.DataFixer
(package private) final boolean
private boolean
(package private) final Set
<ResourceKey<Level>> (package private) final LevelStorageSource.LevelStorageAccess
(package private) static final org.slf4j.Logger
private static final String
(package private) final DimensionDataStorage
(package private) float
(package private) final it.unimi.dsi.fastutil.objects.Reference2FloatMap
<ResourceKey<Level>> (package private) final boolean
(package private) static final Pattern
(package private) boolean
(package private) int
(package private) Component
(package private) static final MutableComponent
(package private) static final MutableComponent
(package private) static final MutableComponent
(package private) static final MutableComponent
(package private) static final MutableComponent
(package private) static final MutableComponent
private final Thread
private static final ThreadFactory
(package private) int
(package private) int
-
Constructor Summary
ConstructorDescriptionWorldUpgrader
(LevelStorageSource.LevelStorageAccess p_249922_, com.mojang.datafixers.DataFixer p_250273_, RegistryAccess p_323645_, boolean p_250738_, boolean p_321700_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
float
dimensionProgress
(ResourceKey<Level> p_18828_) int
float
int
int
boolean
levels()
(package private) static Path
resolveRecreateDirectory
(Path p_326514_) private void
work()
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
THREAD_FACTORY
-
NEW_DIRECTORY_PREFIX
- See Also:
-
STATUS_UPGRADING_POI
-
STATUS_FINISHED_POI
-
STATUS_UPGRADING_ENTITIES
-
STATUS_FINISHED_ENTITIES
-
STATUS_UPGRADING_CHUNKS
-
STATUS_FINISHED_CHUNKS
-
dimensions
-
levels
-
eraseCache
final boolean eraseCache -
recreateRegionFiles
final boolean recreateRegionFiles -
levelStorage
-
thread
-
dataFixer
final com.mojang.datafixers.DataFixer dataFixer -
running
volatile boolean running -
finished
private volatile boolean finished -
progress
volatile float progress -
totalChunks
volatile int totalChunks -
totalFiles
volatile int totalFiles -
converted
volatile int converted -
skipped
volatile int skipped -
progressMap
-
status
-
REGEX
-
overworldDataStorage
-
-
Constructor Details
-
WorldUpgrader
public WorldUpgrader(LevelStorageSource.LevelStorageAccess p_249922_, com.mojang.datafixers.DataFixer p_250273_, RegistryAccess p_323645_, boolean p_250738_, boolean p_321700_)
-
-
Method Details
-
cancel
public void cancel() -
work
private void work() -
isFinished
public boolean isFinished() -
levels
-
dimensionProgress
-
getProgress
public float getProgress() -
getTotalChunks
public int getTotalChunks() -
getConverted
public int getConverted() -
getSkipped
public int getSkipped() -
getStatus
-
resolveRecreateDirectory
-