Class WorldOptimizer

java.lang.Object
net.minecraft.util.WorldOptimizer

public class WorldOptimizer extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • THREAD_FACTORY

      private static final 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 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 Pattern REGEX
    • overworldDataStorage

      private final DimensionSavedDataManager 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

      private 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()