Package net.minecraft.world.updater
Class WorldUpdater
java.lang.Object
net.minecraft.world.updater.WorldUpdater
public class WorldUpdater extends Object
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.datafixers.DataFixerdataFixerprivate Object2FloatMap<RegistryKey<World>>dimensionProgressprivate booleandoneprivate booleaneraseCacheprivate booleankeepUpgradingChunksprivate static LoggerLOGGERprivate PersistentStateManagerpersistentStateManagerprivate floatprogressprivate static PatternREGION_FILE_PATTERNprivate LevelStorage.Sessionsessionprivate intskippedChunkCountprivate Textstatusprivate inttotalChunkCountprivate static ThreadFactoryUPDATE_THREAD_FACTORYprivate ThreadupdateThreadprivate intupgradedChunkCountprivate ImmutableSet<RegistryKey<World>>worlds -
Constructor Summary
Constructors Constructor Description WorldUpdater(LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer, ImmutableSet<RegistryKey<World>> worlds, boolean eraseCache) -
Method Summary
Modifier and Type Method Description voidcancel()private List<ChunkPos>getChunkPositions(RegistryKey<World> world)floatgetProgress()floatgetProgress(RegistryKey<World> world)intgetSkippedChunkCount()TextgetStatus()intgetTotalChunkCount()intgetUpgradedChunkCount()ImmutableSet<RegistryKey<World>>getWorlds()booleanisDone()private voidupdateWorld()
-
Field Details
-
LOGGER
-
UPDATE_THREAD_FACTORY
-
REGION_FILE_PATTERN
-
worlds
-
eraseCache
private final boolean eraseCache -
session
-
updateThread
-
dataFixer
private final com.mojang.datafixers.DataFixer dataFixer -
keepUpgradingChunks
private volatile boolean keepUpgradingChunks -
done
private volatile boolean done -
progress
private volatile float progress -
totalChunkCount
private volatile int totalChunkCount -
upgradedChunkCount
private volatile int upgradedChunkCount -
skippedChunkCount
private volatile int skippedChunkCount -
dimensionProgress
-
status
-
persistentStateManager
-
-
Constructor Details
-
WorldUpdater
public WorldUpdater(LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer, ImmutableSet<RegistryKey<World>> worlds, boolean eraseCache)
-
-
Method Details
-
cancel
public void cancel() -
updateWorld
private void updateWorld() -
getChunkPositions
-
isDone
public boolean isDone() -
getWorlds
-
getProgress
-
getProgress
@Environment(CLIENT) public float getProgress() -
getTotalChunkCount
public int getTotalChunkCount() -
getUpgradedChunkCount
public int getUpgradedChunkCount() -
getSkippedChunkCount
public int getSkippedChunkCount() -
getStatus
-