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.DataFixer
dataFixer
private Object2FloatMap<RegistryKey<World>>
dimensionProgress
private boolean
done
private boolean
eraseCache
private boolean
keepUpgradingChunks
private static Logger
LOGGER
private PersistentStateManager
persistentStateManager
private float
progress
private static Pattern
REGION_FILE_PATTERN
private LevelStorage.Session
session
private int
skippedChunkCount
private Text
status
private int
totalChunkCount
private static ThreadFactory
UPDATE_THREAD_FACTORY
private Thread
updateThread
private int
upgradedChunkCount
private 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 void
cancel()
private List<ChunkPos>
getChunkPositions(RegistryKey<World> world)
float
getProgress()
float
getProgress(RegistryKey<World> world)
int
getSkippedChunkCount()
Text
getStatus()
int
getTotalChunkCount()
int
getUpgradedChunkCount()
ImmutableSet<RegistryKey<World>>
getWorlds()
boolean
isDone()
private void
updateWorld()
-
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
-