Class WorldUpgrader

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

public class WorldUpgrader extends Object
  • Field Details

    • LOGGER

      static final org.slf4j.Logger LOGGER
    • THREAD_FACTORY

      private static final ThreadFactory THREAD_FACTORY
    • NEW_DIRECTORY_PREFIX

      private static final String NEW_DIRECTORY_PREFIX
      See Also:
    • STATUS_UPGRADING_POI

      static final MutableComponent STATUS_UPGRADING_POI
    • STATUS_FINISHED_POI

      static final MutableComponent STATUS_FINISHED_POI
    • STATUS_UPGRADING_ENTITIES

      static final MutableComponent STATUS_UPGRADING_ENTITIES
    • STATUS_FINISHED_ENTITIES

      static final MutableComponent STATUS_FINISHED_ENTITIES
    • STATUS_UPGRADING_CHUNKS

      static final MutableComponent STATUS_UPGRADING_CHUNKS
    • STATUS_FINISHED_CHUNKS

      static final MutableComponent STATUS_FINISHED_CHUNKS
    • dimensions

      final Registry<LevelStem> dimensions
    • levels

      final Set<ResourceKey<Level>> levels
    • eraseCache

      final boolean eraseCache
    • recreateRegionFiles

      final boolean recreateRegionFiles
    • levelStorage

    • thread

      private final Thread thread
    • dataFixer

      final com.mojang.datafixers.DataFixer dataFixer
    • running

      volatile boolean running
    • finished

      private volatile boolean finished
    • progress

      volatile float progress
    • totalChunks

      volatile int totalChunks
    • totalFiles

      volatile int totalFiles
    • converted

      volatile int converted
    • skipped

      volatile int skipped
    • progressMap

      final it.unimi.dsi.fastutil.objects.Reference2FloatMap<ResourceKey<Level>> progressMap
    • status

      volatile Component status
    • REGEX

      static final Pattern REGEX
    • overworldDataStorage

      final DimensionDataStorage overworldDataStorage
  • Constructor Details

  • Method Details

    • cancel

      public void cancel()
    • work

      private void work()
    • 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()
    • resolveRecreateDirectory

      static Path resolveRecreateDirectory(Path p_330107_)