Package net.minecraft.util
Class WorldOptimizer
- java.lang.Object
-
- net.minecraft.util.WorldOptimizer
-
public class WorldOptimizer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
converted
private com.mojang.datafixers.DataFixer
dataFixer
private boolean
eraseCache
private boolean
finished
private com.google.common.collect.ImmutableSet<RegistryKey<World>>
levels
private SaveFormat.LevelSave
levelStorage
private static org.apache.logging.log4j.Logger
LOGGER
private DimensionSavedDataManager
overworldDataStorage
private float
progress
private it.unimi.dsi.fastutil.objects.Object2FloatMap<RegistryKey<World>>
progressMap
private static java.util.regex.Pattern
REGEX
private boolean
running
private int
skipped
private ITextComponent
status
private java.lang.Thread
thread
private static java.util.concurrent.ThreadFactory
THREAD_FACTORY
private int
totalChunks
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
float
dimensionProgress(RegistryKey<World> p_233531_1_)
private java.util.List<ChunkPos>
getAllChunkPos(RegistryKey<World> p_233532_1_)
int
getConverted()
float
getProgress()
int
getSkipped()
ITextComponent
getStatus()
int
getTotalChunks()
boolean
isFinished()
com.google.common.collect.ImmutableSet<RegistryKey<World>>
levels()
private void
work()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
THREAD_FACTORY
private static final java.util.concurrent.ThreadFactory THREAD_FACTORY
-
levels
private final com.google.common.collect.ImmutableSet<RegistryKey<World>> levels
-
eraseCache
private final boolean eraseCache
-
levelStorage
private final SaveFormat.LevelSave levelStorage
-
thread
private final java.lang.Thread 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
private final it.unimi.dsi.fastutil.objects.Object2FloatMap<RegistryKey<World>> progressMap
-
status
private volatile ITextComponent status
-
REGEX
private static final java.util.regex.Pattern REGEX
-
overworldDataStorage
private final DimensionSavedDataManager overworldDataStorage
-
-
Constructor Detail
-
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 Detail
-
cancel
public void cancel()
-
work
private void work()
-
getAllChunkPos
private java.util.List<ChunkPos> getAllChunkPos(RegistryKey<World> p_233532_1_)
-
isFinished
public boolean isFinished()
-
levels
public com.google.common.collect.ImmutableSet<RegistryKey<World>> levels()
-
dimensionProgress
public float dimensionProgress(RegistryKey<World> p_233531_1_)
-
getProgress
public float getProgress()
-
getTotalChunks
public int getTotalChunks()
-
getConverted
public int getConverted()
-
getSkipped
public int getSkipped()
-
getStatus
public ITextComponent getStatus()
-
-