Class WorldOptimizer


  • public class WorldOptimizer
    extends java.lang.Object
    • 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
      • 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
      • REGEX

        private static final java.util.regex.Pattern REGEX
    • 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()
      • 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()