Package net.minecraft.util
Class WorldOptimizer
java.lang.Object
net.minecraft.util.WorldOptimizer
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final com.mojang.datafixers.DataFixer
private final boolean
private boolean
private final com.google.common.collect.ImmutableSet<RegistryKey<World>>
private final SaveFormat.LevelSave
private static final org.apache.logging.log4j.Logger
private final DimensionSavedDataManager
private float
private final it.unimi.dsi.fastutil.objects.Object2FloatMap<RegistryKey<World>>
private static final Pattern
private boolean
private int
private ITextComponent
private final Thread
private static final ThreadFactory
private int
-
Constructor Summary
ConstructorDescriptionWorldOptimizer
(SaveFormat.LevelSave p_i231486_1_, com.mojang.datafixers.DataFixer p_i231486_2_, com.google.common.collect.ImmutableSet<RegistryKey<World>> p_i231486_3_, boolean p_i231486_4_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
float
dimensionProgress
(RegistryKey<World> p_233531_1_) getAllChunkPos
(RegistryKey<World> p_233532_1_) int
float
int
int
boolean
com.google.common.collect.ImmutableSet<RegistryKey<World>>
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
-
WorldOptimizer
public WorldOptimizer(SaveFormat.LevelSave p_i231486_1_, com.mojang.datafixers.DataFixer p_i231486_2_, com.google.common.collect.ImmutableSet<RegistryKey<World>> p_i231486_3_, boolean p_i231486_4_)
-
-
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
-