Package net.minecraft.server.world
Class ServerChunkLoadingManager
java.lang.Object
net.minecraft.world.storage.VersionedChunkStorage
net.minecraft.server.world.ServerChunkLoadingManager
- All Implemented Interfaces:
AutoCloseable,ChunkHolder.PlayersWatchingChunkProvider,ChunkLoadingManager
public class ServerChunkLoadingManager
extends VersionedChunkStorage
implements ChunkHolder.PlayersWatchingChunkProvider, ChunkLoadingManager
- Mappings:
Namespace Name named net/minecraft/server/world/ServerChunkLoadingManagerintermediary net/minecraft/class_3898official atf
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classAn entity tracker governs which players' clients can see an entity.private class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Long2ObjectLinkedOpenHashMap<ChunkHolder> private final AtomicIntegerprivate final ChunkStatusChangeListenerprivate final LongSetprivate final Long2ObjectLinkedOpenHashMap<ChunkHolder> private final Long2LongMapprivate final Long2ByteMapprivate final Long2ObjectLinkedOpenHashMap<ChunkHolder> static final intprivate final Int2ObjectMap<ServerChunkLoadingManager.EntityTracker> static final intprivate static final intprivate static final intprivate static final intprivate static final intstatic final intprivate final ChunkGenerationContextprivate static final byteprivate final ServerChunkLoadingManager.LevelManagerprivate final ServerLightingProviderprivate final ChunkTaskSchedulerprivate final List<ChunkLoader> private static final Loggerprivate final ThreadExecutor<Runnable> private final NoiseConfigprivate final Supplier<PersistentStateManager> private final PlayerChunkWatchingManagerprivate final PointOfInterestStorageprivate static final byteprivate final Stringprivate final StructurePlacementCalculatorprivate final ChunkTicketManagerprivate final AtomicIntegerprivate static final OptionalChunk<List<Chunk>> private static final CompletableFuture<OptionalChunk<List<Chunk>>> (package private) final LongSetprivate static final byteprivate int(package private) final ServerWorldprivate final WorldGenerationProgressListenerprivate final ChunkTaskSchedulerFields inherited from class net.minecraft.world.storage.VersionedChunkStorage
dataFixer, FEATURE_UPDATING_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionServerChunkLoadingManager(ServerWorld world, LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer, StructureTemplateManager structureTemplateManager, Executor executor, ThreadExecutor<Runnable> mainThreadExecutor, ChunkProvider chunkProvider, ChunkGenerator chunkGenerator, WorldGenerationProgressListener worldGenerationProgressListener, ChunkStatusChangeListener chunkStatusChangeListener, Supplier<PersistentStateManager> persistentStateManagerFactory, ChunkTicketManager ticketManager, int viewDistance, boolean dsync) -
Method Summary
Modifier and TypeMethodDescriptionacquire(long pos) private booleancanTickChunk(ServerPlayerEntity player, ChunkPos pos) Returns whether theplayercan tick the chunk atpos.voidclose()(package private) voidcollectSpawningChunks(List<WorldChunk> chunks) crash(IllegalStateException exception, String details) createLoader(ChunkStatus requestedStatus, ChunkPos pos) private boolean(package private) voidprotected Iterable<ChunkHolder> voidforceLighting(ChunkPos centerPos, int radius) (package private) voidforEachBlockTickingChunk(Consumer<WorldChunk> chunkConsumer) generate(AbstractChunkHolder chunkHolder, ChunkGenerationStep step, BoundedRegionArray<AbstractChunkHolder> chunks) protected ChunkGeneratorprotected @Nullable ChunkHoldergetChunkHolder(long pos) getChunkLoadingDebugInfo(ChunkPos chunkPos) protected IntSuppliergetCompletedLevelSupplier(long pos) getCurrentChunkHolder(long pos) private static Stringprotected ServerLightingProviderintprotected NoiseConfiggetPlayersWatchingChunk(ChunkPos chunkPos, boolean onlyOnWatchDistanceEdge) protected PointOfInterestStoragegetPostProcessedChunk(long pos) private ChunkgetProtoChunk(ChunkPos chunkPos) private CompletableFuture<OptionalChunk<List<Chunk>>> getRegion(ChunkHolder centerChunk, int margin, IntFunction<ChunkStatus> distanceToStatus) private static doublegetSquaredDistance(ChunkPos pos, Vec3d vec3d) protected StructurePlacementCalculatorintprivate CompletableFuture<Optional<NbtCompound>> getUpdatedChunkNbt(ChunkPos chunkPos) (package private) intgetViewDistance(ServerPlayerEntity player) (package private) voidhandlePlayerAddedOrRemoved(ServerPlayerEntity player, boolean added) private booleanprivate booleanisLevelChunk(ChunkPos pos) private booleanisOnTrackEdge(ServerPlayerEntity player, int chunkX, int chunkZ) (package private) booleanisTracked(ServerPlayerEntity player, int chunkX, int chunkZ) private CompletableFuture<Chunk> protected voidloadEntity(Entity entity) makeChunkAccessible(ChunkHolder holder) makeChunkEntitiesTickable(ChunkHolder holder) makeChunkTickable(ChunkHolder holder) private byteprivate voidmarkAsProtoChunk(ChunkPos pos) private void(package private) voidonChunkStatusChange(ChunkPos chunkPos, ChunkLevelType levelType) private ChunkrecoverFromException(Throwable throwable, ChunkPos chunkPos) voidrelease(AbstractChunkHolder chunkHolder) protected voidsave(boolean flush) private booleansave(ChunkHolder chunkHolder, long currentTime) private booleanprivate voidsaveChunks(BooleanSupplier shouldKeepTicking) private voidschedule(ChunkLoader loader) voidsendChunkBiomePackets(List<Chunk> chunks) protected voidsendToNearbyPlayers(Entity entity, Packet<?> packet) voidsendToOtherNearbyPlayers(Entity entity, Packet<?> packet) private voidsendToPlayers(ChunkHolder chunkHolder, WorldChunk chunk) private voidsendWatchPackets(ServerPlayerEntity player) private voidsendWatchPackets(ServerPlayerEntity player, ChunkFilter chunkFilter) (package private) @Nullable ChunkHoldersetLevel(long pos, int level, @Nullable ChunkHolder holder, int int2) Sets the loading level ofChunkHolders.protected voidsetViewDistance(int watchDistance) booleanReturns whether the server shutdown should be delayed to process some tasks.(package private) booleanshouldTick(ChunkPos pos) protected voidtick(BooleanSupplier shouldKeepTicking) protected voidTicks and updates the tracked status of each tracker.private voidtrack(ServerPlayerEntity player, ChunkPos pos) private static voidtrack(ServerPlayerEntity player, WorldChunk chunk) private voidtryUnloadChunk(long pos, ChunkHolder chunk) private voidunloadChunks(BooleanSupplier shouldKeepTicking) protected voidunloadEntity(Entity entity) private static voiduntrack(ServerPlayerEntity player, ChunkPos pos) private NbtCompoundvoidprotected booleanprivate voidupdateLevel(ChunkPos pos, IntSupplier levelGetter, int targetLevel, IntConsumer levelSetter) voidupdatePosition(ServerPlayerEntity player) Updates the chunk section position of theplayer.private voidUpdates the watched chunk section position for theplayer, and sends a render distance update packet to the client.Methods inherited from class net.minecraft.world.storage.VersionedChunkStorage
completeAll, getDataVersion, getNbt, getStorageKey, getWorker, markFeatureUpdateResolved, needsBlending, saveContextToNbt, setNbt, updateChunkNbt
-
Field Details
-
UNLOADED_CHUNKS
- Mappings:
Namespace Name Mixin selector named UNLOADED_CHUNKSLnet/minecraft/server/world/ServerChunkLoadingManager;UNLOADED_CHUNKS:Lnet/minecraft/server/world/OptionalChunk;intermediary field_51862Lnet/minecraft/class_3898;field_51862:Lnet/minecraft/class_9259;official fLatf;f:Latg;
-
UNLOADED_CHUNKS_FUTURE
- Mappings:
Namespace Name Mixin selector named UNLOADED_CHUNKS_FUTURELnet/minecraft/server/world/ServerChunkLoadingManager;UNLOADED_CHUNKS_FUTURE:Ljava/util/concurrent/CompletableFuture;intermediary field_51863Lnet/minecraft/class_3898;field_51863:Ljava/util/concurrent/CompletableFuture;official gLatf;g:Ljava/util/concurrent/CompletableFuture;
-
PROTO_CHUNK
private static final byte PROTO_CHUNK- See Also:
- Mappings:
Namespace Name Mixin selector named PROTO_CHUNKLnet/minecraft/server/world/ServerChunkLoadingManager;PROTO_CHUNK:Bintermediary field_29671Lnet/minecraft/class_3898;field_29671:Bofficial hLatf;h:B
-
UNMARKED_CHUNK
private static final byte UNMARKED_CHUNK- See Also:
- Mappings:
Namespace Name Mixin selector named UNMARKED_CHUNKLnet/minecraft/server/world/ServerChunkLoadingManager;UNMARKED_CHUNK:Bintermediary field_29672Lnet/minecraft/class_3898;field_29672:Bofficial iLatf;i:B
-
LEVEL_CHUNK
private static final byte LEVEL_CHUNK- See Also:
- Mappings:
Namespace Name Mixin selector named LEVEL_CHUNKLnet/minecraft/server/world/ServerChunkLoadingManager;LEVEL_CHUNK:Bintermediary field_29673Lnet/minecraft/class_3898;field_29673:Bofficial jLatf;j:B
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/server/world/ServerChunkLoadingManager;LOGGER:Lorg/slf4j/Logger;intermediary field_17212Lnet/minecraft/class_3898;field_17212:Lorg/slf4j/Logger;official kLatf;k:Lorg/slf4j/Logger;
-
field_29674
private static final int field_29674- See Also:
- Mappings:
Namespace Name Mixin selector named field_29674Lnet/minecraft/server/world/ServerChunkLoadingManager;field_29674:Iintermediary field_29674Lnet/minecraft/class_3898;field_29674:Iofficial lLatf;l:I
-
field_36291
private static final int field_36291- See Also:
- Mappings:
Namespace Name Mixin selector named field_36291Lnet/minecraft/server/world/ServerChunkLoadingManager;field_36291:Iintermediary field_36291Lnet/minecraft/class_3898;field_36291:Iofficial mLatf;m:I
-
field_36384
private static final int field_36384- See Also:
- Mappings:
Namespace Name Mixin selector named field_36384Lnet/minecraft/server/world/ServerChunkLoadingManager;field_36384:Iintermediary field_36384Lnet/minecraft/class_3898;field_36384:Iofficial nLatf;n:I
-
field_54966
private static final int field_54966- See Also:
- Mappings:
Namespace Name Mixin selector named field_54966Lnet/minecraft/server/world/ServerChunkLoadingManager;field_54966:Iintermediary field_54966Lnet/minecraft/class_3898;field_54966:Iofficial oLatf;o:I
-
DEFAULT_VIEW_DISTANCE
public static final int DEFAULT_VIEW_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_VIEW_DISTANCELnet/minecraft/server/world/ServerChunkLoadingManager;DEFAULT_VIEW_DISTANCE:Iintermediary field_29675Lnet/minecraft/class_3898;field_29675:Iofficial aLatf;a:I
-
field_29669
public static final int field_29669- See Also:
- Mappings:
Namespace Name Mixin selector named field_29669Lnet/minecraft/server/world/ServerChunkLoadingManager;field_29669:Iintermediary field_29669Lnet/minecraft/class_3898;field_29669:Iofficial bLatf;b:I
-
FORCED_CHUNK_LEVEL
public static final int FORCED_CHUNK_LEVEL- Mappings:
Namespace Name Mixin selector named FORCED_CHUNK_LEVELLnet/minecraft/server/world/ServerChunkLoadingManager;FORCED_CHUNK_LEVEL:Iintermediary field_29670Lnet/minecraft/class_3898;field_29670:Iofficial cLatf;c:I
-
currentChunkHolders
- Mappings:
Namespace Name Mixin selector named currentChunkHoldersLnet/minecraft/server/world/ServerChunkLoadingManager;currentChunkHolders:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;intermediary field_17213Lnet/minecraft/class_3898;field_17213:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;official pLatf;p:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
chunkHolders
- Mappings:
Namespace Name Mixin selector named chunkHoldersLnet/minecraft/server/world/ServerChunkLoadingManager;chunkHolders:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;intermediary field_17220Lnet/minecraft/class_3898;field_17220:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;official qLatf;q:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
chunksToUnload
- Mappings:
Namespace Name Mixin selector named chunksToUnloadLnet/minecraft/server/world/ServerChunkLoadingManager;chunksToUnload:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;intermediary field_18807Lnet/minecraft/class_3898;field_18807:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;official rLatf;r:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
loaders
- Mappings:
Namespace Name Mixin selector named loadersLnet/minecraft/server/world/ServerChunkLoadingManager;loaders:Ljava/util/List;intermediary field_51864Lnet/minecraft/class_3898;field_51864:Ljava/util/List;official sLatf;s:Ljava/util/List;
-
world
- Mappings:
Namespace Name Mixin selector named worldLnet/minecraft/server/world/ServerChunkLoadingManager;world:Lnet/minecraft/server/world/ServerWorld;intermediary field_17214Lnet/minecraft/class_3898;field_17214:Lnet/minecraft/class_3218;official tLatf;t:Laub;
-
lightingProvider
- Mappings:
Namespace Name Mixin selector named lightingProviderLnet/minecraft/server/world/ServerChunkLoadingManager;lightingProvider:Lnet/minecraft/server/world/ServerLightingProvider;intermediary field_17215Lnet/minecraft/class_3898;field_17215:Lnet/minecraft/class_3227;official uLatf;u:Lauf;
-
mainThreadExecutor
- Mappings:
Namespace Name Mixin selector named mainThreadExecutorLnet/minecraft/server/world/ServerChunkLoadingManager;mainThreadExecutor:Lnet/minecraft/util/thread/ThreadExecutor;intermediary field_17216Lnet/minecraft/class_3898;field_17216:Lnet/minecraft/class_1255;official vLatf;v:Lbvx;
-
noiseConfig
- Mappings:
Namespace Name Mixin selector named noiseConfigLnet/minecraft/server/world/ServerChunkLoadingManager;noiseConfig:Lnet/minecraft/world/gen/noise/NoiseConfig;intermediary field_37278Lnet/minecraft/class_3898;field_37278:Lnet/minecraft/class_7138;official wLatf;w:Leko;
-
structurePlacementCalculator
- Mappings:
Namespace Name Mixin selector named structurePlacementCalculatorLnet/minecraft/server/world/ServerChunkLoadingManager;structurePlacementCalculator:Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;intermediary field_40856Lnet/minecraft/class_3898;field_40856:Lnet/minecraft/class_7869;official xLatf;x:Lega;
-
persistentStateManagerFactory
- Mappings:
Namespace Name Mixin selector named persistentStateManagerFactoryLnet/minecraft/server/world/ServerChunkLoadingManager;persistentStateManagerFactory:Ljava/util/function/Supplier;intermediary field_17705Lnet/minecraft/class_3898;field_17705:Ljava/util/function/Supplier;official yLatf;y:Ljava/util/function/Supplier;
-
ticketManager
- Mappings:
Namespace Name Mixin selector named ticketManagerLnet/minecraft/server/world/ServerChunkLoadingManager;ticketManager:Lnet/minecraft/server/world/ChunkTicketManager;intermediary field_55588Lnet/minecraft/class_3898;field_55588:Lnet/minecraft/class_10592;official zLatf;z:Ldnr;
-
pointOfInterestStorage
- Mappings:
Namespace Name Mixin selector named pointOfInterestStorageLnet/minecraft/server/world/ServerChunkLoadingManager;pointOfInterestStorage:Lnet/minecraft/world/poi/PointOfInterestStorage;intermediary field_18808Lnet/minecraft/class_3898;field_18808:Lnet/minecraft/class_4153;official ALatf;A:Lclp;
-
unloadedChunks
- Mappings:
Namespace Name Mixin selector named unloadedChunksLnet/minecraft/server/world/ServerChunkLoadingManager;unloadedChunks:Lit/unimi/dsi/fastutil/longs/LongSet;intermediary field_17221Lnet/minecraft/class_3898;field_17221:Lit/unimi/dsi/fastutil/longs/LongSet;official BLatf;B:Lit/unimi/dsi/fastutil/longs/LongSet;
-
chunkHolderListDirty
private boolean chunkHolderListDirty- Mappings:
Namespace Name Mixin selector named chunkHolderListDirtyLnet/minecraft/server/world/ServerChunkLoadingManager;chunkHolderListDirty:Zintermediary field_17222Lnet/minecraft/class_3898;field_17222:Zofficial CLatf;C:Z
-
worldGenScheduler
- Mappings:
Namespace Name Mixin selector named worldGenSchedulerLnet/minecraft/server/world/ServerChunkLoadingManager;worldGenScheduler:Lnet/minecraft/server/world/ChunkTaskScheduler;intermediary field_54034Lnet/minecraft/class_3898;field_54034:Lnet/minecraft/class_10171;official DLatf;D:Lath;
-
lightScheduler
- Mappings:
Namespace Name Mixin selector named lightSchedulerLnet/minecraft/server/world/ServerChunkLoadingManager;lightScheduler:Lnet/minecraft/server/world/ChunkTaskScheduler;intermediary field_54035Lnet/minecraft/class_3898;field_54035:Lnet/minecraft/class_10171;official ELatf;E:Lath;
-
worldGenerationProgressListener
- Mappings:
Namespace Name Mixin selector named worldGenerationProgressListenerLnet/minecraft/server/world/ServerChunkLoadingManager;worldGenerationProgressListener:Lnet/minecraft/server/WorldGenerationProgressListener;intermediary field_17442Lnet/minecraft/class_3898;field_17442:Lnet/minecraft/class_3949;official FLatf;F:Laul;
-
chunkStatusChangeListener
- Mappings:
Namespace Name Mixin selector named chunkStatusChangeListenerLnet/minecraft/server/world/ServerChunkLoadingManager;chunkStatusChangeListener:Lnet/minecraft/world/chunk/ChunkStatusChangeListener;intermediary field_26931Lnet/minecraft/class_3898;field_26931:Lnet/minecraft/class_5567;official GLatf;G:Leif;
-
levelManager
- Mappings:
Namespace Name Mixin selector named levelManagerLnet/minecraft/server/world/ServerChunkLoadingManager;levelManager:Lnet/minecraft/server/world/ServerChunkLoadingManager$LevelManager;intermediary field_17228Lnet/minecraft/class_3898;field_17228:Lnet/minecraft/class_3898$class_3216;official HLatf;H:Latf$a;
-
totalChunksLoadedCount
- Mappings:
Namespace Name Mixin selector named totalChunksLoadedCountLnet/minecraft/server/world/ServerChunkLoadingManager;totalChunksLoadedCount:Ljava/util/concurrent/atomic/AtomicInteger;intermediary field_17230Lnet/minecraft/class_3898;field_17230:Ljava/util/concurrent/atomic/AtomicInteger;official ILatf;I:Ljava/util/concurrent/atomic/AtomicInteger;
-
saveDir
- Mappings:
Namespace Name Mixin selector named saveDirLnet/minecraft/server/world/ServerChunkLoadingManager;saveDir:Ljava/lang/String;intermediary field_17707Lnet/minecraft/class_3898;field_17707:Ljava/lang/String;official JLatf;J:Ljava/lang/String;
-
playerChunkWatchingManager
- Mappings:
Namespace Name Mixin selector named playerChunkWatchingManagerLnet/minecraft/server/world/ServerChunkLoadingManager;playerChunkWatchingManager:Lnet/minecraft/server/world/PlayerChunkWatchingManager;intermediary field_18241Lnet/minecraft/class_3898;field_18241:Lnet/minecraft/class_3210;official KLatf;K:Latu;
-
entityTrackers
- Mappings:
Namespace Name Mixin selector named entityTrackersLnet/minecraft/server/world/ServerChunkLoadingManager;entityTrackers:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;intermediary field_18242Lnet/minecraft/class_3898;field_18242:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;official LLatf;L:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
chunkToType
- Mappings:
Namespace Name Mixin selector named chunkToTypeLnet/minecraft/server/world/ServerChunkLoadingManager;chunkToType:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;intermediary field_23786Lnet/minecraft/class_3898;field_23786:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;official MLatf;M:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
-
chunkToNextSaveTimeMs
- Mappings:
Namespace Name Mixin selector named chunkToNextSaveTimeMsLnet/minecraft/server/world/ServerChunkLoadingManager;chunkToNextSaveTimeMs:Lit/unimi/dsi/fastutil/longs/Long2LongMap;intermediary field_52353Lnet/minecraft/class_3898;field_52353:Lit/unimi/dsi/fastutil/longs/Long2LongMap;official NLatf;N:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
-
chunksToSave
- Mappings:
Namespace Name Mixin selector named chunksToSaveLnet/minecraft/server/world/ServerChunkLoadingManager;chunksToSave:Lit/unimi/dsi/fastutil/longs/LongSet;intermediary field_54964Lnet/minecraft/class_3898;field_54964:Lit/unimi/dsi/fastutil/longs/LongSet;official OLatf;O:Lit/unimi/dsi/fastutil/longs/LongSet;
-
unloadTaskQueue
- Mappings:
Namespace Name Mixin selector named unloadTaskQueueLnet/minecraft/server/world/ServerChunkLoadingManager;unloadTaskQueue:Ljava/util/Queue;intermediary field_19343Lnet/minecraft/class_3898;field_19343:Ljava/util/Queue;official PLatf;P:Ljava/util/Queue;
-
chunksBeingSavedCount
- Mappings:
Namespace Name Mixin selector named chunksBeingSavedCountLnet/minecraft/server/world/ServerChunkLoadingManager;chunksBeingSavedCount:Ljava/util/concurrent/atomic/AtomicInteger;intermediary field_54965Lnet/minecraft/class_3898;field_54965:Ljava/util/concurrent/atomic/AtomicInteger;official QLatf;Q:Ljava/util/concurrent/atomic/AtomicInteger;
-
watchDistance
private int watchDistance- Mappings:
Namespace Name Mixin selector named watchDistanceLnet/minecraft/server/world/ServerChunkLoadingManager;watchDistance:Iintermediary field_18243Lnet/minecraft/class_3898;field_18243:Iofficial RLatf;R:I
-
generationContext
- Mappings:
Namespace Name Mixin selector named generationContextLnet/minecraft/server/world/ServerChunkLoadingManager;generationContext:Lnet/minecraft/world/chunk/ChunkGenerationContext;intermediary field_51861Lnet/minecraft/class_3898;field_51861:Lnet/minecraft/class_9312;official SLatf;S:Lehe;
-
-
Constructor Details
-
ServerChunkLoadingManager
public ServerChunkLoadingManager(ServerWorld world, LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer, StructureTemplateManager structureTemplateManager, Executor executor, ThreadExecutor<Runnable> mainThreadExecutor, ChunkProvider chunkProvider, ChunkGenerator chunkGenerator, WorldGenerationProgressListener worldGenerationProgressListener, ChunkStatusChangeListener chunkStatusChangeListener, Supplier<PersistentStateManager> persistentStateManagerFactory, ChunkTicketManager ticketManager, int viewDistance, boolean dsync) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/server/world/ServerChunkLoadingManager;<init>(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/level/storage/LevelStorage$Session;Lcom/mojang/datafixers/DataFixer;Lnet/minecraft/structure/StructureTemplateManager;Ljava/util/concurrent/Executor;Lnet/minecraft/util/thread/ThreadExecutor;Lnet/minecraft/world/chunk/ChunkProvider;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/server/WorldGenerationProgressListener;Lnet/minecraft/world/chunk/ChunkStatusChangeListener;Ljava/util/function/Supplier;Lnet/minecraft/server/world/ChunkTicketManager;IZ)Vintermediary <init>Lnet/minecraft/class_3898;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_32$class_5143;Lcom/mojang/datafixers/DataFixer;Lnet/minecraft/class_3485;Ljava/util/concurrent/Executor;Lnet/minecraft/class_1255;Lnet/minecraft/class_2823;Lnet/minecraft/class_2794;Lnet/minecraft/class_3949;Lnet/minecraft/class_5567;Ljava/util/function/Supplier;Lnet/minecraft/class_10592;IZ)Vofficial <init>Latf;<init>(Laub;Lfcs$c;Lcom/mojang/datafixers/DataFixer;Lezb;Ljava/util/concurrent/Executor;Lbvx;Legl;Lefz;Laul;Leif;Ljava/util/function/Supplier;Ldnr;IZ)V
-
-
Method Details
-
markChunkNeedsSaving
- Mappings:
Namespace Name Mixin selector named markChunkNeedsSavingLnet/minecraft/server/world/ServerChunkLoadingManager;markChunkNeedsSaving(Lnet/minecraft/util/math/ChunkPos;)Vintermediary method_65056Lnet/minecraft/class_3898;method_65056(Lnet/minecraft/class_1923;)Vofficial fLatf;f(Ldlz;)V
-
getChunkGenerator
- Mappings:
Namespace Name Mixin selector named getChunkGeneratorLnet/minecraft/server/world/ServerChunkLoadingManager;getChunkGenerator()Lnet/minecraft/world/gen/chunk/ChunkGenerator;intermediary method_37897Lnet/minecraft/class_3898;method_37897()Lnet/minecraft/class_2794;official aLatf;a()Lefz;
-
getStructurePlacementCalculator
- Mappings:
Namespace Name Mixin selector named getStructurePlacementCalculatorLnet/minecraft/server/world/ServerChunkLoadingManager;getStructurePlacementCalculator()Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;intermediary method_46641Lnet/minecraft/class_3898;method_46641()Lnet/minecraft/class_7869;official bLatf;b()Lega;
-
getNoiseConfig
- Mappings:
Namespace Name Mixin selector named getNoiseConfigLnet/minecraft/server/world/ServerChunkLoadingManager;getNoiseConfig()Lnet/minecraft/world/gen/noise/NoiseConfig;intermediary method_41247Lnet/minecraft/class_3898;method_41247()Lnet/minecraft/class_7138;official cLatf;c()Leko;
-
isTracked
- Mappings:
Namespace Name Mixin selector named isTrackedLnet/minecraft/server/world/ServerChunkLoadingManager;isTracked(Lnet/minecraft/server/network/ServerPlayerEntity;II)Zintermediary method_52345Lnet/minecraft/class_3898;method_52345(Lnet/minecraft/class_3222;II)Zofficial aLatf;a(Lauc;II)Z
-
isOnTrackEdge
- Mappings:
Namespace Name Mixin selector named isOnTrackEdgeLnet/minecraft/server/world/ServerChunkLoadingManager;isOnTrackEdge(Lnet/minecraft/server/network/ServerPlayerEntity;II)Zintermediary method_52351Lnet/minecraft/class_3898;method_52351(Lnet/minecraft/class_3222;II)Zofficial bLatf;b(Lauc;II)Z
-
getLightingProvider
- Mappings:
Namespace Name Mixin selector named getLightingProviderLnet/minecraft/server/world/ServerChunkLoadingManager;getLightingProvider()Lnet/minecraft/server/world/ServerLightingProvider;intermediary method_17212Lnet/minecraft/class_3898;method_17212()Lnet/minecraft/class_3227;official dLatf;d()Lauf;
-
getCurrentChunkHolder
- Mappings:
Namespace Name Mixin selector named getCurrentChunkHolderLnet/minecraft/server/world/ServerChunkLoadingManager;getCurrentChunkHolder(J)Lnet/minecraft/server/world/ChunkHolder;intermediary method_17255Lnet/minecraft/class_3898;method_17255(J)Lnet/minecraft/class_3193;official aLatf;a(J)Latd;
-
getChunkHolder
- Mappings:
Namespace Name Mixin selector named getChunkHolderLnet/minecraft/server/world/ServerChunkLoadingManager;getChunkHolder(J)Lnet/minecraft/server/world/ChunkHolder;intermediary method_17216Lnet/minecraft/class_3898;method_17216(J)Lnet/minecraft/class_3193;official bLatf;b(J)Latd;
-
getCompletedLevelSupplier
- Mappings:
Namespace Name Mixin selector named getCompletedLevelSupplierLnet/minecraft/server/world/ServerChunkLoadingManager;getCompletedLevelSupplier(J)Ljava/util/function/IntSupplier;intermediary method_17604Lnet/minecraft/class_3898;method_17604(J)Ljava/util/function/IntSupplier;official cLatf;c(J)Ljava/util/function/IntSupplier;
-
getChunkLoadingDebugInfo
- Mappings:
Namespace Name Mixin selector named getChunkLoadingDebugInfoLnet/minecraft/server/world/ServerChunkLoadingManager;getChunkLoadingDebugInfo(Lnet/minecraft/util/math/ChunkPos;)Ljava/lang/String;intermediary method_23272Lnet/minecraft/class_3898;method_23272(Lnet/minecraft/class_1923;)Ljava/lang/String;official aLatf;a(Ldlz;)Ljava/lang/String;
-
getRegion
private CompletableFuture<OptionalChunk<List<Chunk>>> getRegion(ChunkHolder centerChunk, int margin, IntFunction<ChunkStatus> distanceToStatus) - Mappings:
Namespace Name Mixin selector named getRegionLnet/minecraft/server/world/ServerChunkLoadingManager;getRegion(Lnet/minecraft/server/world/ChunkHolder;ILjava/util/function/IntFunction;)Ljava/util/concurrent/CompletableFuture;intermediary method_17220Lnet/minecraft/class_3898;method_17220(Lnet/minecraft/class_3193;ILjava/util/function/IntFunction;)Ljava/util/concurrent/CompletableFuture;official aLatf;a(Latd;ILjava/util/function/IntFunction;)Ljava/util/concurrent/CompletableFuture;
-
crash
- Mappings:
Namespace Name Mixin selector named crashLnet/minecraft/server/world/ServerChunkLoadingManager;crash(Ljava/lang/IllegalStateException;Ljava/lang/String;)Lnet/minecraft/util/crash/CrashException;intermediary method_40067Lnet/minecraft/class_3898;method_40067(Ljava/lang/IllegalStateException;Ljava/lang/String;)Lnet/minecraft/class_148;official aLatf;a(Ljava/lang/IllegalStateException;Ljava/lang/String;)Laa;
-
makeChunkEntitiesTickable
- Mappings:
Namespace Name Mixin selector named makeChunkEntitiesTickableLnet/minecraft/server/world/ServerChunkLoadingManager;makeChunkEntitiesTickable(Lnet/minecraft/server/world/ChunkHolder;)Ljava/util/concurrent/CompletableFuture;intermediary method_17247Lnet/minecraft/class_3898;method_17247(Lnet/minecraft/class_3193;)Ljava/util/concurrent/CompletableFuture;official aLatf;a(Latd;)Ljava/util/concurrent/CompletableFuture;
-
setLevel
@Nullable @Nullable ChunkHolder setLevel(long pos, int level, @Nullable @Nullable ChunkHolder holder, int int2) Sets the loading level ofChunkHolders. NonexistentChunkHolders will be created automatically if their loading level is 45 or lower, and chunks whose loading levels are 46 or higher will be scheduled to be removed.- Mappings:
Namespace Name Mixin selector named setLevelLnet/minecraft/server/world/ServerChunkLoadingManager;setLevel(JILnet/minecraft/server/world/ChunkHolder;I)Lnet/minecraft/server/world/ChunkHolder;intermediary method_17217Lnet/minecraft/class_3898;method_17217(JILnet/minecraft/class_3193;I)Lnet/minecraft/class_3193;official aLatf;a(JILatd;I)Latd;
-
updateLevel
private void updateLevel(ChunkPos pos, IntSupplier levelGetter, int targetLevel, IntConsumer levelSetter) - Mappings:
Namespace Name Mixin selector named updateLevelLnet/minecraft/server/world/ServerChunkLoadingManager;updateLevel(Lnet/minecraft/util/math/ChunkPos;Ljava/util/function/IntSupplier;ILjava/util/function/IntConsumer;)Vintermediary method_63545Lnet/minecraft/class_3898;method_63545(Lnet/minecraft/class_1923;Ljava/util/function/IntSupplier;ILjava/util/function/IntConsumer;)Vofficial aLatf;a(Ldlz;Ljava/util/function/IntSupplier;ILjava/util/function/IntConsumer;)V
-
close
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classVersionedChunkStorage- Throws:
IOException
-
save
protected void save(boolean flush) - Mappings:
Namespace Name Mixin selector named saveLnet/minecraft/server/world/ServerChunkLoadingManager;save(Z)Vintermediary method_17242Lnet/minecraft/class_3898;method_17242(Z)Vofficial aLatf;a(Z)V
-
tick
- Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/server/world/ServerChunkLoadingManager;tick(Ljava/util/function/BooleanSupplier;)Vintermediary method_17233Lnet/minecraft/class_3898;method_17233(Ljava/util/function/BooleanSupplier;)Vofficial aLatf;a(Ljava/util/function/BooleanSupplier;)V
-
shouldDelayShutdown
public boolean shouldDelayShutdown()Returns whether the server shutdown should be delayed to process some tasks.- Returns:
- whether the server shutdown should be delayed to process some tasks
- Mappings:
Namespace Name Mixin selector named shouldDelayShutdownLnet/minecraft/server/world/ServerChunkLoadingManager;shouldDelayShutdown()Zintermediary method_39992Lnet/minecraft/class_3898;method_39992()Zofficial eLatf;e()Z
-
unloadChunks
- Mappings:
Namespace Name Mixin selector named unloadChunksLnet/minecraft/server/world/ServerChunkLoadingManager;unloadChunks(Ljava/util/function/BooleanSupplier;)Vintermediary method_20605Lnet/minecraft/class_3898;method_20605(Ljava/util/function/BooleanSupplier;)Vofficial bLatf;b(Ljava/util/function/BooleanSupplier;)V
-
saveChunks
- Mappings:
Namespace Name Mixin selector named saveChunksLnet/minecraft/server/world/ServerChunkLoadingManager;saveChunks(Ljava/util/function/BooleanSupplier;)Vintermediary method_65055Lnet/minecraft/class_3898;method_65055(Ljava/util/function/BooleanSupplier;)Vofficial cLatf;c(Ljava/util/function/BooleanSupplier;)V
-
tryUnloadChunk
- Mappings:
Namespace Name Mixin selector named tryUnloadChunkLnet/minecraft/server/world/ServerChunkLoadingManager;tryUnloadChunk(JLnet/minecraft/server/world/ChunkHolder;)Vintermediary method_20458Lnet/minecraft/class_3898;method_20458(JLnet/minecraft/class_3193;)Vofficial aLatf;a(JLatd;)V
-
updateHolderMap
protected boolean updateHolderMap()- Mappings:
Namespace Name Mixin selector named updateHolderMapLnet/minecraft/server/world/ServerChunkLoadingManager;updateHolderMap()Zintermediary method_17244Lnet/minecraft/class_3898;method_17244()Zofficial fLatf;f()Z
-
loadChunk
- Mappings:
Namespace Name Mixin selector named loadChunkLnet/minecraft/server/world/ServerChunkLoadingManager;loadChunk(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;intermediary method_20619Lnet/minecraft/class_3898;method_20619(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;official gLatf;g(Ldlz;)Ljava/util/concurrent/CompletableFuture;
-
recoverFromException
- Mappings:
Namespace Name Mixin selector named recoverFromExceptionLnet/minecraft/server/world/ServerChunkLoadingManager;recoverFromException(Ljava/lang/Throwable;Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/world/chunk/Chunk;intermediary method_43376Lnet/minecraft/class_3898;method_43376(Ljava/lang/Throwable;Lnet/minecraft/class_1923;)Lnet/minecraft/class_2791;official aLatf;a(Ljava/lang/Throwable;Ldlz;)Lefy;
-
getProtoChunk
- Mappings:
Namespace Name Mixin selector named getProtoChunkLnet/minecraft/server/world/ServerChunkLoadingManager;getProtoChunk(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/world/chunk/Chunk;intermediary method_43382Lnet/minecraft/class_3898;method_43382(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2791;official hLatf;h(Ldlz;)Lefy;
-
markAsProtoChunk
- Mappings:
Namespace Name Mixin selector named markAsProtoChunkLnet/minecraft/server/world/ServerChunkLoadingManager;markAsProtoChunk(Lnet/minecraft/util/math/ChunkPos;)Vintermediary method_27054Lnet/minecraft/class_3898;method_27054(Lnet/minecraft/class_1923;)Vofficial iLatf;i(Ldlz;)V
-
mark
- Mappings:
Namespace Name Mixin selector named markLnet/minecraft/server/world/ServerChunkLoadingManager;mark(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/chunk/ChunkType;)Bintermediary method_27053Lnet/minecraft/class_3898;method_27053(Lnet/minecraft/class_1923;Lnet/minecraft/class_2808;)Bofficial aLatf;a(Ldlz;Lehd;)B
-
acquire
- Specified by:
acquirein interfaceChunkLoadingManager- Mappings:
Namespace Name Mixin selector named acquireLnet/minecraft/world/ChunkLoadingManager;acquire(J)Lnet/minecraft/world/chunk/AbstractChunkHolder;intermediary method_60448Lnet/minecraft/class_9760;method_60448(J)Lnet/minecraft/class_9761;official dLatq;d(J)Latr;
-
release
- Specified by:
releasein interfaceChunkLoadingManager- Mappings:
Namespace Name Mixin selector named releaseLnet/minecraft/world/ChunkLoadingManager;release(Lnet/minecraft/world/chunk/AbstractChunkHolder;)Vintermediary method_60441Lnet/minecraft/class_9760;method_60441(Lnet/minecraft/class_9761;)Vofficial aLatq;a(Latr;)V
-
generate
public CompletableFuture<Chunk> generate(AbstractChunkHolder chunkHolder, ChunkGenerationStep step, BoundedRegionArray<AbstractChunkHolder> chunks) - Specified by:
generatein interfaceChunkLoadingManager- Mappings:
Namespace Name Mixin selector named generateLnet/minecraft/world/ChunkLoadingManager;generate(Lnet/minecraft/world/chunk/AbstractChunkHolder;Lnet/minecraft/world/chunk/ChunkGenerationStep;Lnet/minecraft/util/collection/BoundedRegionArray;)Ljava/util/concurrent/CompletableFuture;intermediary method_60442Lnet/minecraft/class_9760;method_60442(Lnet/minecraft/class_9761;Lnet/minecraft/class_9770;Lnet/minecraft/class_9762;)Ljava/util/concurrent/CompletableFuture;official aLatq;a(Latr;Lehc;Lbcx;)Ljava/util/concurrent/CompletableFuture;
-
createLoader
- Specified by:
createLoaderin interfaceChunkLoadingManager- Mappings:
Namespace Name Mixin selector named createLoaderLnet/minecraft/world/ChunkLoadingManager;createLoader(Lnet/minecraft/world/chunk/ChunkStatus;Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/world/chunk/ChunkLoader;intermediary method_60443Lnet/minecraft/class_9760;method_60443(Lnet/minecraft/class_2806;Lnet/minecraft/class_1923;)Lnet/minecraft/class_9759;official aLatq;a(Legz;Ldlz;)Latc;
-
schedule
- Mappings:
Namespace Name Mixin selector named scheduleLnet/minecraft/server/world/ServerChunkLoadingManager;schedule(Lnet/minecraft/world/chunk/ChunkLoader;)Vintermediary method_60439Lnet/minecraft/class_3898;method_60439(Lnet/minecraft/class_9759;)Vofficial aLatf;a(Latc;)V
-
updateChunks
public void updateChunks()- Specified by:
updateChunksin interfaceChunkLoadingManager- Mappings:
Namespace Name Mixin selector named updateChunksLnet/minecraft/world/ChunkLoadingManager;updateChunks()Vintermediary method_60450Lnet/minecraft/class_9760;method_60450()Vofficial gLatq;g()V
-
makeChunkTickable
- Mappings:
Namespace Name Mixin selector named makeChunkTickableLnet/minecraft/server/world/ServerChunkLoadingManager;makeChunkTickable(Lnet/minecraft/server/world/ChunkHolder;)Ljava/util/concurrent/CompletableFuture;intermediary method_17235Lnet/minecraft/class_3898;method_17235(Lnet/minecraft/class_3193;)Ljava/util/concurrent/CompletableFuture;official bLatf;b(Latd;)Ljava/util/concurrent/CompletableFuture;
-
sendToPlayers
- Mappings:
Namespace Name Mixin selector named sendToPlayersLnet/minecraft/server/world/ServerChunkLoadingManager;sendToPlayers(Lnet/minecraft/server/world/ChunkHolder;Lnet/minecraft/world/chunk/WorldChunk;)Vintermediary method_53686Lnet/minecraft/class_3898;method_53686(Lnet/minecraft/class_3193;Lnet/minecraft/class_2818;)Vofficial aLatf;a(Latd;Legi;)V
-
makeChunkAccessible
- Mappings:
Namespace Name Mixin selector named makeChunkAccessibleLnet/minecraft/server/world/ServerChunkLoadingManager;makeChunkAccessible(Lnet/minecraft/server/world/ChunkHolder;)Ljava/util/concurrent/CompletableFuture;intermediary method_31417Lnet/minecraft/class_3898;method_31417(Lnet/minecraft/class_3193;)Ljava/util/concurrent/CompletableFuture;official cLatf;c(Latd;)Ljava/util/concurrent/CompletableFuture;
-
getTotalChunksLoadedCount
public int getTotalChunksLoadedCount()- Mappings:
Namespace Name Mixin selector named getTotalChunksLoadedCountLnet/minecraft/server/world/ServerChunkLoadingManager;getTotalChunksLoadedCount()Iintermediary method_17253Lnet/minecraft/class_3898;method_17253()Iofficial hLatf;h()I
-
save
- Mappings:
Namespace Name Mixin selector named saveLnet/minecraft/server/world/ServerChunkLoadingManager;save(Lnet/minecraft/server/world/ChunkHolder;J)Zintermediary method_39925Lnet/minecraft/class_3898;method_39925(Lnet/minecraft/class_3193;J)Zofficial aLatf;a(Latd;J)Z
-
save
- Mappings:
Namespace Name Mixin selector named saveLnet/minecraft/server/world/ServerChunkLoadingManager;save(Lnet/minecraft/world/chunk/Chunk;)Zintermediary method_17228Lnet/minecraft/class_3898;method_17228(Lnet/minecraft/class_2791;)Zofficial aLatf;a(Lefy;)Z
-
isLevelChunk
- Mappings:
Namespace Name Mixin selector named isLevelChunkLnet/minecraft/server/world/ServerChunkLoadingManager;isLevelChunk(Lnet/minecraft/util/math/ChunkPos;)Zintermediary method_27055Lnet/minecraft/class_3898;method_27055(Lnet/minecraft/class_1923;)Zofficial jLatf;j(Ldlz;)Z
-
setViewDistance
protected void setViewDistance(int watchDistance) - Mappings:
Namespace Name Mixin selector named setViewDistanceLnet/minecraft/server/world/ServerChunkLoadingManager;setViewDistance(I)Vintermediary method_17214Lnet/minecraft/class_3898;method_17214(I)Vofficial aLatf;a(I)V
-
getViewDistance
- Mappings:
Namespace Name Mixin selector named getViewDistanceLnet/minecraft/server/world/ServerChunkLoadingManager;getViewDistance(Lnet/minecraft/server/network/ServerPlayerEntity;)Iintermediary method_52350Lnet/minecraft/class_3898;method_52350(Lnet/minecraft/class_3222;)Iofficial bLatf;b(Lauc;)I
-
track
- Mappings:
Namespace Name Mixin selector named trackLnet/minecraft/server/world/ServerChunkLoadingManager;track(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/math/ChunkPos;)Vintermediary method_52347Lnet/minecraft/class_3898;method_52347(Lnet/minecraft/class_3222;Lnet/minecraft/class_1923;)Vofficial aLatf;a(Lauc;Ldlz;)V
-
track
- Mappings:
Namespace Name Mixin selector named trackLnet/minecraft/server/world/ServerChunkLoadingManager;track(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/world/chunk/WorldChunk;)Vintermediary method_52348Lnet/minecraft/class_3898;method_52348(Lnet/minecraft/class_3222;Lnet/minecraft/class_2818;)Vofficial aLatf;a(Lauc;Legi;)V
-
untrack
- Mappings:
Namespace Name Mixin selector named untrackLnet/minecraft/server/world/ServerChunkLoadingManager;untrack(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/math/ChunkPos;)Vintermediary method_52352Lnet/minecraft/class_3898;method_52352(Lnet/minecraft/class_3222;Lnet/minecraft/class_1923;)Vofficial bLatf;b(Lauc;Ldlz;)V
-
getPostProcessedChunk
- Mappings:
Namespace Name Mixin selector named getPostProcessedChunkLnet/minecraft/server/world/ServerChunkLoadingManager;getPostProcessedChunk(J)Lnet/minecraft/world/chunk/WorldChunk;intermediary method_53688Lnet/minecraft/class_3898;method_53688(J)Lnet/minecraft/class_2818;official eLatf;e(J)Legi;
-
getLoadedChunkCount
public int getLoadedChunkCount()- Mappings:
Namespace Name Mixin selector named getLoadedChunkCountLnet/minecraft/server/world/ServerChunkLoadingManager;getLoadedChunkCount()Iintermediary method_17260Lnet/minecraft/class_3898;method_17260()Iofficial iLatf;i()I
-
getLevelManager
- Mappings:
Namespace Name Mixin selector named getLevelManagerLnet/minecraft/server/world/ServerChunkLoadingManager;getLevelManager()Lnet/minecraft/server/world/ChunkLevelManager;intermediary method_17263Lnet/minecraft/class_3898;method_17263()Lnet/minecraft/class_3204;official jLatf;j()Lato;
-
entryIterator
- Mappings:
Namespace Name Mixin selector named entryIteratorLnet/minecraft/server/world/ServerChunkLoadingManager;entryIterator()Ljava/lang/Iterable;intermediary method_17264Lnet/minecraft/class_3898;method_17264()Ljava/lang/Iterable;official kLatf;k()Ljava/lang/Iterable;
-
dump
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named dumpLnet/minecraft/server/world/ServerChunkLoadingManager;dump(Ljava/io/Writer;)Vintermediary method_21619Lnet/minecraft/class_3898;method_21619(Ljava/io/Writer;)Vofficial aLatf;a(Ljava/io/Writer;)V
-
getFutureStatus
- Mappings:
Namespace Name Mixin selector named getFutureStatusLnet/minecraft/server/world/ServerChunkLoadingManager;getFutureStatus(Ljava/util/concurrent/CompletableFuture;)Ljava/lang/String;intermediary method_21676Lnet/minecraft/class_3898;method_21676(Ljava/util/concurrent/CompletableFuture;)Ljava/lang/String;official aLatf;a(Ljava/util/concurrent/CompletableFuture;)Ljava/lang/String;
-
getUpdatedChunkNbt
- Mappings:
Namespace Name Mixin selector named getUpdatedChunkNbtLnet/minecraft/server/world/ServerChunkLoadingManager;getUpdatedChunkNbt(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;intermediary method_43383Lnet/minecraft/class_3898;method_43383(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;official kLatf;k(Ldlz;)Ljava/util/concurrent/CompletableFuture;
-
updateChunkNbt
- Mappings:
Namespace Name Mixin selector named updateChunkNbtLnet/minecraft/server/world/ServerChunkLoadingManager;updateChunkNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;intermediary method_43381Lnet/minecraft/class_3898;method_43381(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;official bLatf;b(Lui;)Lui;
-
collectSpawningChunks
- Mappings:
Namespace Name Mixin selector named collectSpawningChunksLnet/minecraft/server/world/ServerChunkLoadingManager;collectSpawningChunks(Ljava/util/List;)Vintermediary method_67497Lnet/minecraft/class_3898;method_67497(Ljava/util/List;)Vofficial aLatf;a(Ljava/util/List;)V
-
forEachBlockTickingChunk
- Mappings:
Namespace Name Mixin selector named forEachBlockTickingChunkLnet/minecraft/server/world/ServerChunkLoadingManager;forEachBlockTickingChunk(Ljava/util/function/Consumer;)Vintermediary method_67498Lnet/minecraft/class_3898;method_67498(Ljava/util/function/Consumer;)Vofficial aLatf;a(Ljava/util/function/Consumer;)V
-
shouldTick
- Mappings:
Namespace Name Mixin selector named shouldTickLnet/minecraft/server/world/ServerChunkLoadingManager;shouldTick(Lnet/minecraft/util/math/ChunkPos;)Zintermediary method_38783Lnet/minecraft/class_3898;method_38783(Lnet/minecraft/class_1923;)Zofficial bLatf;b(Ldlz;)Z
-
isAnyPlayerTicking
- Mappings:
Namespace Name Mixin selector named isAnyPlayerTickingLnet/minecraft/server/world/ServerChunkLoadingManager;isAnyPlayerTicking(Lnet/minecraft/util/math/ChunkPos;)Zintermediary method_61261Lnet/minecraft/class_3898;method_61261(Lnet/minecraft/class_1923;)Zofficial lLatf;l(Ldlz;)Z
-
getPlayersWatchingChunk
- Mappings:
Namespace Name Mixin selector named getPlayersWatchingChunkLnet/minecraft/server/world/ServerChunkLoadingManager;getPlayersWatchingChunk(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/List;intermediary method_37907Lnet/minecraft/class_3898;method_37907(Lnet/minecraft/class_1923;)Ljava/util/List;official cLatf;c(Ldlz;)Ljava/util/List;
-
canTickChunk
Returns whether theplayercan tick the chunk atpos.- Returns:
- whether the
playercan tick the chunk atpos - API Note:
- This controls monster spawning and block random ticks.
- Implementation Note:
- Spectators cannot tick chunks. Additionally, only chunks within 128 block radius of that player can be ticked.
- Mappings:
Namespace Name Mixin selector named canTickChunkLnet/minecraft/server/world/ServerChunkLoadingManager;canTickChunk(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/math/ChunkPos;)Zintermediary method_38782Lnet/minecraft/class_3898;method_38782(Lnet/minecraft/class_3222;Lnet/minecraft/class_1923;)Zofficial cLatf;c(Lauc;Ldlz;)Z
-
getSquaredDistance
- Mappings:
Namespace Name Mixin selector named getSquaredDistanceLnet/minecraft/server/world/ServerChunkLoadingManager;getSquaredDistance(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/util/math/Vec3d;)Dintermediary method_18704Lnet/minecraft/class_3898;method_18704(Lnet/minecraft/class_1923;Lnet/minecraft/class_243;)Dofficial aLatf;a(Ldlz;Lfis;)D
-
doesNotGenerateChunks
- Mappings:
Namespace Name Mixin selector named doesNotGenerateChunksLnet/minecraft/server/world/ServerChunkLoadingManager;doesNotGenerateChunks(Lnet/minecraft/server/network/ServerPlayerEntity;)Zintermediary method_18722Lnet/minecraft/class_3898;method_18722(Lnet/minecraft/class_3222;)Zofficial cLatf;c(Lauc;)Z
-
handlePlayerAddedOrRemoved
- Mappings:
Namespace Name Mixin selector named handlePlayerAddedOrRemovedLnet/minecraft/server/world/ServerChunkLoadingManager;handlePlayerAddedOrRemoved(Lnet/minecraft/server/network/ServerPlayerEntity;Z)Vintermediary method_18714Lnet/minecraft/class_3898;method_18714(Lnet/minecraft/class_3222;Z)Vofficial aLatf;a(Lauc;Z)V
-
updateWatchedSection
Updates the watched chunk section position for theplayer, and sends a render distance update packet to the client.- Mappings:
Namespace Name Mixin selector named updateWatchedSectionLnet/minecraft/server/world/ServerChunkLoadingManager;updateWatchedSection(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_20726Lnet/minecraft/class_3898;method_20726(Lnet/minecraft/class_3222;)Vofficial dLatf;d(Lauc;)V
-
updatePosition
Updates the chunk section position of theplayer. This updates the player position for both entity tracking and chunk loading (watching) logic.- See Also:
- Mappings:
Namespace Name Mixin selector named updatePositionLnet/minecraft/server/world/ServerChunkLoadingManager;updatePosition(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_18713Lnet/minecraft/class_3898;method_18713(Lnet/minecraft/class_3222;)Vofficial aLatf;a(Lauc;)V
-
sendWatchPackets
- Mappings:
Namespace Name Mixin selector named sendWatchPacketsLnet/minecraft/server/world/ServerChunkLoadingManager;sendWatchPackets(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_17241Lnet/minecraft/class_3898;method_17241(Lnet/minecraft/class_3222;)Vofficial eLatf;e(Lauc;)V
-
sendWatchPackets
- Mappings:
Namespace Name Mixin selector named sendWatchPacketsLnet/minecraft/server/world/ServerChunkLoadingManager;sendWatchPackets(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/server/network/ChunkFilter;)Vintermediary method_52346Lnet/minecraft/class_3898;method_52346(Lnet/minecraft/class_3222;Lnet/minecraft/class_8603;)Vofficial aLatf;a(Lauc;Latk;)V
-
getPlayersWatchingChunk
public List<ServerPlayerEntity> getPlayersWatchingChunk(ChunkPos chunkPos, boolean onlyOnWatchDistanceEdge) - Specified by:
getPlayersWatchingChunkin interfaceChunkHolder.PlayersWatchingChunkProvider- Mappings:
Namespace Name Mixin selector named getPlayersWatchingChunkLnet/minecraft/server/world/ChunkHolder$PlayersWatchingChunkProvider;getPlayersWatchingChunk(Lnet/minecraft/util/math/ChunkPos;Z)Ljava/util/List;intermediary method_17210Lnet/minecraft/class_3193$class_3897;method_17210(Lnet/minecraft/class_1923;Z)Ljava/util/List;official aLatd$b;a(Ldlz;Z)Ljava/util/List;
-
loadEntity
- Mappings:
Namespace Name Mixin selector named loadEntityLnet/minecraft/server/world/ServerChunkLoadingManager;loadEntity(Lnet/minecraft/entity/Entity;)Vintermediary method_18701Lnet/minecraft/class_3898;method_18701(Lnet/minecraft/class_1297;)Vofficial aLatf;a(Lbzm;)V
-
unloadEntity
- Mappings:
Namespace Name Mixin selector named unloadEntityLnet/minecraft/server/world/ServerChunkLoadingManager;unloadEntity(Lnet/minecraft/entity/Entity;)Vintermediary method_18716Lnet/minecraft/class_3898;method_18716(Lnet/minecraft/class_1297;)Vofficial bLatf;b(Lbzm;)V
-
tickEntityMovement
protected void tickEntityMovement()Ticks and updates the tracked status of each tracker.This first checks if entities have changed chunk sections, and updates tracking status of those entities to all players. It then checks if any player has changed chunk sections, and updates all entities tracking status to those players. This ensures all possible updates are accounted for.
- Mappings:
Namespace Name Mixin selector named tickEntityMovementLnet/minecraft/server/world/ServerChunkLoadingManager;tickEntityMovement()Vintermediary method_18727Lnet/minecraft/class_3898;method_18727()Vofficial lLatf;l()V
-
sendToOtherNearbyPlayers
- Mappings:
Namespace Name Mixin selector named sendToOtherNearbyPlayersLnet/minecraft/server/world/ServerChunkLoadingManager;sendToOtherNearbyPlayers(Lnet/minecraft/entity/Entity;Lnet/minecraft/network/packet/Packet;)Vintermediary method_18702Lnet/minecraft/class_3898;method_18702(Lnet/minecraft/class_1297;Lnet/minecraft/class_2596;)Vofficial aLatf;a(Lbzm;Lzw;)V
-
sendToNearbyPlayers
- Mappings:
Namespace Name Mixin selector named sendToNearbyPlayersLnet/minecraft/server/world/ServerChunkLoadingManager;sendToNearbyPlayers(Lnet/minecraft/entity/Entity;Lnet/minecraft/network/packet/Packet;)Vintermediary method_18717Lnet/minecraft/class_3898;method_18717(Lnet/minecraft/class_1297;Lnet/minecraft/class_2596;)Vofficial bLatf;b(Lbzm;Lzw;)V
-
sendChunkBiomePackets
- Mappings:
Namespace Name Mixin selector named sendChunkBiomePacketsLnet/minecraft/server/world/ServerChunkLoadingManager;sendChunkBiomePackets(Ljava/util/List;)Vintermediary method_49421Lnet/minecraft/class_3898;method_49421(Ljava/util/List;)Vofficial bLatf;b(Ljava/util/List;)V
-
getPointOfInterestStorage
- Mappings:
Namespace Name Mixin selector named getPointOfInterestStorageLnet/minecraft/server/world/ServerChunkLoadingManager;getPointOfInterestStorage()Lnet/minecraft/world/poi/PointOfInterestStorage;intermediary method_19488Lnet/minecraft/class_3898;method_19488()Lnet/minecraft/class_4153;official mLatf;m()Lclp;
-
getSaveDir
- Mappings:
Namespace Name Mixin selector named getSaveDirLnet/minecraft/server/world/ServerChunkLoadingManager;getSaveDir()Ljava/lang/String;intermediary method_37476Lnet/minecraft/class_3898;method_37476()Ljava/lang/String;official nLatf;n()Ljava/lang/String;
-
onChunkStatusChange
- Mappings:
Namespace Name Mixin selector named onChunkStatusChangeLnet/minecraft/server/world/ServerChunkLoadingManager;onChunkStatusChange(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/server/world/ChunkLevelType;)Vintermediary method_31414Lnet/minecraft/class_3898;method_31414(Lnet/minecraft/class_1923;Lnet/minecraft/class_3194;)Vofficial aLatf;a(Ldlz;Latp;)V
-
forceLighting
- Mappings:
Namespace Name Mixin selector named forceLightingLnet/minecraft/server/world/ServerChunkLoadingManager;forceLighting(Lnet/minecraft/util/math/ChunkPos;I)Vintermediary method_53685Lnet/minecraft/class_3898;method_53685(Lnet/minecraft/class_1923;I)Vofficial aLatf;a(Ldlz;I)V
-