Package net.minecraft.util
Class WorldOptimizer
java.lang.Object
net.minecraft.util.WorldOptimizer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final com.mojang.datafixers.DataFixerprivate final booleanprivate booleanprivate final com.google.common.collect.ImmutableSet<RegistryKey<World>>private final SaveFormat.LevelSaveprivate static final org.apache.logging.log4j.Loggerprivate final DimensionSavedDataManagerprivate floatprivate final it.unimi.dsi.fastutil.objects.Object2FloatMap<RegistryKey<World>>private static final Patternprivate booleanprivate intprivate ITextComponentprivate final Threadprivate static final ThreadFactoryprivate int -
Constructor Summary
ConstructorsConstructorDescriptionWorldOptimizer(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 TypeMethodDescriptionvoidcancel()floatdimensionProgress(RegistryKey<World> p_233531_1_) getAllChunkPos(RegistryKey<World> p_233532_1_) intfloatintintbooleancom.google.common.collect.ImmutableSet<RegistryKey<World>>levels()private voidwork()
-
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
-