Package net.minecraft.world.updater
Class WorldUpdater
java.lang.Object
net.minecraft.world.updater.WorldUpdater
public class WorldUpdater extends Object
- Mappings:
Namespace Name official ape
intermediary net/minecraft/class_1257
named net/minecraft/world/updater/WorldUpdater
-
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
- Mappings:
Namespace Name Mixin selector official a
Lape;a:Lorg/apache/logging/log4j/Logger;
intermediary field_5756
Lnet/minecraft/class_1257;field_5756:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/world/updater/WorldUpdater;LOGGER:Lorg/apache/logging/log4j/Logger;
-
UPDATE_THREAD_FACTORY
- Mappings:
Namespace Name Mixin selector official b
Lape;b:Ljava/util/concurrent/ThreadFactory;
intermediary field_5757
Lnet/minecraft/class_1257;field_5757:Ljava/util/concurrent/ThreadFactory;
named UPDATE_THREAD_FACTORY
Lnet/minecraft/world/updater/WorldUpdater;UPDATE_THREAD_FACTORY:Ljava/util/concurrent/ThreadFactory;
-
REGION_FILE_PATTERN
- Mappings:
Namespace Name Mixin selector official p
Lape;p:Ljava/util/regex/Pattern;
intermediary field_17622
Lnet/minecraft/class_1257;field_17622:Ljava/util/regex/Pattern;
named REGION_FILE_PATTERN
Lnet/minecraft/world/updater/WorldUpdater;REGION_FILE_PATTERN:Ljava/util/regex/Pattern;
-
worlds
- Mappings:
Namespace Name Mixin selector official c
Lape;c:Lcom/google/common/collect/ImmutableSet;
intermediary field_25354
Lnet/minecraft/class_1257;field_25354:Lcom/google/common/collect/ImmutableSet;
named worlds
Lnet/minecraft/world/updater/WorldUpdater;worlds:Lcom/google/common/collect/ImmutableSet;
-
eraseCache
private final boolean eraseCache- Mappings:
Namespace Name Mixin selector official d
Lape;d:Z
intermediary field_19225
Lnet/minecraft/class_1257;field_19225:Z
named eraseCache
Lnet/minecraft/world/updater/WorldUpdater;eraseCache:Z
-
session
- Mappings:
Namespace Name Mixin selector official e
Lape;e:Lddu$a;
intermediary field_24083
Lnet/minecraft/class_1257;field_24083:Lnet/minecraft/class_32$class_5143;
named session
Lnet/minecraft/world/updater/WorldUpdater;session:Lnet/minecraft/world/level/storage/LevelStorage$Session;
-
updateThread
- Mappings:
Namespace Name Mixin selector official f
Lape;f:Ljava/lang/Thread;
intermediary field_5767
Lnet/minecraft/class_1257;field_5767:Ljava/lang/Thread;
named updateThread
Lnet/minecraft/world/updater/WorldUpdater;updateThread:Ljava/lang/Thread;
-
dataFixer
private final com.mojang.datafixers.DataFixer dataFixer- Mappings:
Namespace Name Mixin selector official g
Lape;g:Lcom/mojang/datafixers/DataFixer;
intermediary field_24084
Lnet/minecraft/class_1257;field_24084:Lcom/mojang/datafixers/DataFixer;
named dataFixer
Lnet/minecraft/world/updater/WorldUpdater;dataFixer:Lcom/mojang/datafixers/DataFixer;
-
keepUpgradingChunks
private volatile boolean keepUpgradingChunks- Mappings:
Namespace Name Mixin selector official h
Lape;h:Z
intermediary field_5760
Lnet/minecraft/class_1257;field_5760:Z
named keepUpgradingChunks
Lnet/minecraft/world/updater/WorldUpdater;keepUpgradingChunks:Z
-
done
private volatile boolean done- Mappings:
Namespace Name Mixin selector official i
Lape;i:Z
intermediary field_5759
Lnet/minecraft/class_1257;field_5759:Z
named done
Lnet/minecraft/world/updater/WorldUpdater;done:Z
-
progress
private volatile float progress- Mappings:
Namespace Name Mixin selector official j
Lape;j:F
intermediary field_5763
Lnet/minecraft/class_1257;field_5763:F
named progress
Lnet/minecraft/world/updater/WorldUpdater;progress:F
-
totalChunkCount
private volatile int totalChunkCount- Mappings:
Namespace Name Mixin selector official k
Lape;k:I
intermediary field_5768
Lnet/minecraft/class_1257;field_5768:I
named totalChunkCount
Lnet/minecraft/world/updater/WorldUpdater;totalChunkCount:I
-
upgradedChunkCount
private volatile int upgradedChunkCount- Mappings:
Namespace Name Mixin selector official l
Lape;l:I
intermediary field_5766
Lnet/minecraft/class_1257;field_5766:I
named upgradedChunkCount
Lnet/minecraft/world/updater/WorldUpdater;upgradedChunkCount:I
-
skippedChunkCount
private volatile int skippedChunkCount- Mappings:
Namespace Name Mixin selector official m
Lape;m:I
intermediary field_5764
Lnet/minecraft/class_1257;field_5764:I
named skippedChunkCount
Lnet/minecraft/world/updater/WorldUpdater;skippedChunkCount:I
-
dimensionProgress
- Mappings:
Namespace Name Mixin selector official n
Lape;n:Lit/unimi/dsi/fastutil/objects/Object2FloatMap;
intermediary field_5762
Lnet/minecraft/class_1257;field_5762:Lit/unimi/dsi/fastutil/objects/Object2FloatMap;
named dimensionProgress
Lnet/minecraft/world/updater/WorldUpdater;dimensionProgress:Lit/unimi/dsi/fastutil/objects/Object2FloatMap;
-
status
- Mappings:
Namespace Name Mixin selector official o
Lape;o:Loi;
intermediary field_5765
Lnet/minecraft/class_1257;field_5765:Lnet/minecraft/class_2561;
named status
Lnet/minecraft/world/updater/WorldUpdater;status:Lnet/minecraft/text/Text;
-
persistentStateManager
- Mappings:
Namespace Name Mixin selector official q
Lape;q:Lddq;
intermediary field_5755
Lnet/minecraft/class_1257;field_5755:Lnet/minecraft/class_26;
named persistentStateManager
Lnet/minecraft/world/updater/WorldUpdater;persistentStateManager:Lnet/minecraft/world/PersistentStateManager;
-
-
Constructor Details
-
WorldUpdater
public WorldUpdater(LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer, ImmutableSet<RegistryKey<World>> worlds, boolean eraseCache)- Mappings:
Namespace Name Mixin selector official <init>
Lape;<init>(Lddu$a;Lcom/mojang/datafixers/DataFixer;Lcom/google/common/collect/ImmutableSet;Z)V
intermediary <init>
Lnet/minecraft/class_1257;<init>(Lnet/minecraft/class_32$class_5143;Lcom/mojang/datafixers/DataFixer;Lcom/google/common/collect/ImmutableSet;Z)V
named <init>
Lnet/minecraft/world/updater/WorldUpdater;<init>(Lnet/minecraft/world/level/storage/LevelStorage$Session;Lcom/mojang/datafixers/DataFixer;Lcom/google/common/collect/ImmutableSet;Z)V
-
-
Method Details
-
cancel
public void cancel()- Mappings:
Namespace Name Mixin selector official a
Lape;a()V
intermediary method_5402
Lnet/minecraft/class_1257;method_5402()V
named cancel
Lnet/minecraft/world/updater/WorldUpdater;cancel()V
-
updateWorld
private void updateWorld()- Mappings:
Namespace Name Mixin selector official i
Lape;i()V
intermediary method_5404
Lnet/minecraft/class_1257;method_5404()V
named updateWorld
Lnet/minecraft/world/updater/WorldUpdater;updateWorld()V
-
getChunkPositions
- Mappings:
Namespace Name Mixin selector official b
Lape;b(Lwa;)Ljava/util/List;
intermediary method_17830
Lnet/minecraft/class_1257;method_17830(Lnet/minecraft/class_5321;)Ljava/util/List;
named getChunkPositions
Lnet/minecraft/world/updater/WorldUpdater;getChunkPositions(Lnet/minecraft/util/registry/RegistryKey;)Ljava/util/List;
-
isDone
public boolean isDone()- Mappings:
Namespace Name Mixin selector official b
Lape;b()Z
intermediary method_5403
Lnet/minecraft/class_1257;method_5403()Z
named isDone
Lnet/minecraft/world/updater/WorldUpdater;isDone()Z
-
getWorlds
- Mappings:
Namespace Name Mixin selector official c
Lape;c()Lcom/google/common/collect/ImmutableSet;
intermediary method_28304
Lnet/minecraft/class_1257;method_28304()Lcom/google/common/collect/ImmutableSet;
named getWorlds
Lnet/minecraft/world/updater/WorldUpdater;getWorlds()Lcom/google/common/collect/ImmutableSet;
-
getProgress
- Mappings:
Namespace Name Mixin selector official a
Lape;a(Lwa;)F
intermediary method_5393
Lnet/minecraft/class_1257;method_5393(Lnet/minecraft/class_5321;)F
named getProgress
Lnet/minecraft/world/updater/WorldUpdater;getProgress(Lnet/minecraft/util/registry/RegistryKey;)F
-
getProgress
- Mappings:
Namespace Name Mixin selector official d
Lape;d()F
intermediary method_5401
Lnet/minecraft/class_1257;method_5401()F
named getProgress
Lnet/minecraft/world/updater/WorldUpdater;getProgress()F
-
getTotalChunkCount
public int getTotalChunkCount()- Mappings:
Namespace Name Mixin selector official e
Lape;e()I
intermediary method_5397
Lnet/minecraft/class_1257;method_5397()I
named getTotalChunkCount
Lnet/minecraft/world/updater/WorldUpdater;getTotalChunkCount()I
-
getUpgradedChunkCount
public int getUpgradedChunkCount()- Mappings:
Namespace Name Mixin selector official f
Lape;f()I
intermediary method_5400
Lnet/minecraft/class_1257;method_5400()I
named getUpgradedChunkCount
Lnet/minecraft/world/updater/WorldUpdater;getUpgradedChunkCount()I
-
getSkippedChunkCount
public int getSkippedChunkCount()- Mappings:
Namespace Name Mixin selector official g
Lape;g()I
intermediary method_5399
Lnet/minecraft/class_1257;method_5399()I
named getSkippedChunkCount
Lnet/minecraft/world/updater/WorldUpdater;getSkippedChunkCount()I
-
getStatus
- Mappings:
Namespace Name Mixin selector official h
Lape;h()Loi;
intermediary method_5394
Lnet/minecraft/class_1257;method_5394()Lnet/minecraft/class_2561;
named getStatus
Lnet/minecraft/world/updater/WorldUpdater;getStatus()Lnet/minecraft/text/Text;
-