Class WorldUpgrader

java.lang.Object
net.minecraft.util.worldupdate.WorldUpgrader

public class WorldUpgrader extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • THREAD_FACTORY

      private static final ThreadFactory THREAD_FACTORY
    • dimensions

      private final Registry<LevelStem> dimensions
    • levels

      private final Set<ResourceKey<Level>> levels
    • eraseCache

      private final boolean eraseCache
    • levelStorage

      private final LevelStorageSource.LevelStorageAccess 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<ResourceKey<Level>> progressMap
    • status

      private volatile Component status
    • REGEX

      private static final Pattern REGEX
    • overworldDataStorage

      private final DimensionDataStorage overworldDataStorage
  • Constructor Details

  • Method Details

    • cancel

      public void cancel()
    • work

      private void work()
    • getAllChunkPos

      private List<ChunkPos> getAllChunkPos(ResourceKey<Level> p_18831_)
    • isFinished

      public boolean isFinished()
    • levels

      public Set<ResourceKey<Level>> levels()
    • dimensionProgress

      public float dimensionProgress(ResourceKey<Level> p_18828_)
    • getProgress

      public float getProgress()
    • getTotalChunks

      public int getTotalChunks()
    • getConverted

      public int getConverted()
    • getSkipped

      public int getSkipped()
    • getStatus

      public Component getStatus()