Package net.minecraft.server.world
Class ThreadedAnvilChunkStorage
java.lang.Object
net.minecraft.world.storage.VersionedChunkStorage
net.minecraft.server.world.ThreadedAnvilChunkStorage
- All Implemented Interfaces:
AutoCloseable
,ChunkHolder.PlayersWatchingChunkProvider
public class ThreadedAnvilChunkStorage
extends VersionedChunkStorage
implements ChunkHolder.PlayersWatchingChunkProvider
- Mappings:
Namespace Name official afb
intermediary net/minecraft/class_3898
named net/minecraft/server/world/ThreadedAnvilChunkStorage
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
An entity tracker governs which players' clients can see an entity.private class
-
Field Summary
Modifier and TypeFieldDescriptionprivate ChunkGenerator
private boolean
private Long2ObjectLinkedOpenHashMap<ChunkHolder>
private final ChunkStatusChangeListener
private final Long2ObjectLinkedOpenHashMap<ChunkHolder>
private final ChunkTaskPrioritySystem
private final Long2LongMap
private final Long2ByteMap
private final Long2ObjectLinkedOpenHashMap<ChunkHolder>
private final Int2ObjectMap<ThreadedAnvilChunkStorage.EntityTracker>
static final int
static final int
private static final int
private static final int
private static final int
private static final int
private static final byte
private final ServerLightingProvider
private final LongSet
private static final org.slf4j.Logger
private final MessageListener<ChunkTaskPrioritySystem.Task<Runnable>>
private final ThreadExecutor<Runnable>
static final int
Specifies the maximum ticket level a chunk can be before a chunk'sChunkHolder.LevelType
isChunkHolder.LevelType.BORDER
.private NoiseConfig
private final Supplier<PersistentStateManager>
private final PlayerChunkWatchingManager
private final PointOfInterestStorage
private static final byte
private final String
private final StructureTemplateManager
private final ThreadedAnvilChunkStorage.TicketManager
private final AtomicInteger
(package private) final LongSet
private static final byte
(package private) int
(package private) final ServerWorld
private final WorldGenerationProgressListener
private final MessageListener<ChunkTaskPrioritySystem.Task<Runnable>>
Fields inherited from class net.minecraft.world.storage.VersionedChunkStorage
dataFixer, field_36219
-
Constructor Summary
ConstructorDescriptionThreadedAnvilChunkStorage
(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, int viewDistance, boolean dsync) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addEntitiesFromNbt
(ServerWorld world, List<NbtCompound> nbt) private boolean
canTickChunk
(ServerPlayerEntity player, ChunkPos pos) Returns whether theplayer
can tick the chunk atpos
.void
close()
private static boolean
private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.Unloaded>> convertToFullChunk
(ChunkHolder chunkHolder) crash
(IllegalStateException exception, String details) private boolean
(package private) void
protected Iterable<ChunkHolder>
CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.Unloaded>> getChunk
(ChunkHolder holder, ChunkStatus requiredStatus) protected ChunkGenerator
protected @Nullable ChunkHolder
getChunkHolder
(long pos) getChunkLoadingDebugInfo
(ChunkPos chunkPos) protected IntSupplier
getCompletedLevelSupplier
(long pos) protected @Nullable ChunkHolder
getCurrentChunkHolder
(long pos) private static String
getFutureStatus
(CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk, ChunkHolder.Unloaded>> future) protected ServerLightingProvider
int
protected NoiseConfig
getPlayersWatchingChunk
(ChunkPos chunkPos, boolean onlyOnWatchDistanceEdge) protected PointOfInterestStorage
private Chunk
getProtoChunk
(ChunkPos chunkPos) private CompletableFuture<com.mojang.datafixers.util.Either<List<Chunk>,
ChunkHolder.Unloaded>> getRegion
(ChunkPos centerChunk, int margin, IntFunction<ChunkStatus> distanceToStatus) private ChunkStatus
getRequiredStatusForGeneration
(ChunkStatus centerChunkTargetStatus, int distance) private static double
getSquaredDistance
(ChunkPos pos, Entity entity) int
private CompletableFuture<Optional<NbtCompound>>
getUpdatedChunkNbt
(ChunkPos chunkPos) (package private) void
handlePlayerAddedOrRemoved
(ServerPlayerEntity player, boolean added) private boolean
isLevelChunk
(ChunkPos pos) private static boolean
isOnDistanceEdge
(int x1, int z1, int x2, int z2, int distance) static boolean
isWithinDistance
(int x1, int z1, int x2, int z2, int distance) private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.Unloaded>> protected void
loadEntity
(Entity entity) CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,
ChunkHolder.Unloaded>> makeChunkAccessible
(ChunkHolder holder) CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,
ChunkHolder.Unloaded>> CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,
ChunkHolder.Unloaded>> makeChunkTickable
(ChunkHolder holder) private byte
mark
(ChunkPos pos, ChunkStatus.ChunkType type) private void
markAsProtoChunk
(ChunkPos pos) (package private) void
onChunkStatusChange
(ChunkPos chunkPos, ChunkHolder.LevelType levelType) private com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.Unloaded> recoverFromException
(Throwable throwable, ChunkPos chunkPos) protected void
protected void
save
(boolean flush) private boolean
save
(ChunkHolder chunkHolder) private boolean
private void
sendChunkDataPackets
(ServerPlayerEntity player, MutableObject<ChunkDataS2CPacket> cachedDataPacket, WorldChunk chunk) protected void
sendToNearbyPlayers
(Entity entity, Packet<?> packet) void
sendToOtherNearbyPlayers
(Entity entity, Packet<?> packet) protected void
sendWatchPackets
(ServerPlayerEntity player, ChunkPos pos, MutableObject<ChunkDataS2CPacket> packet, boolean oldWithinViewDistance, boolean newWithinViewDistance) (package private) @Nullable ChunkHolder
setLevel
(long pos, int level, @Nullable ChunkHolder holder, int int2) protected void
setViewDistance
(int watchDistance) boolean
Returns whether the server shutdown should be delayed to process some tasks.(package private) boolean
shouldTick
(ChunkPos pos) protected void
tick
(BooleanSupplier shouldKeepTicking) protected void
Ticks and updates the tracked status of each tracker.private void
tryUnloadChunk
(long pos, ChunkHolder holder) private void
unloadChunks
(BooleanSupplier shouldKeepTicking) protected void
unloadEntity
(Entity entity) private NbtCompound
protected boolean
void
updatePosition
(ServerPlayerEntity player) Updates the chunk section position of theplayer
.private ChunkSectionPos
Updates the watched chunk section position for theplayer
, and sends a render distance update packet to the client.private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.Unloaded>> upgradeChunk
(ChunkHolder holder, ChunkStatus requiredStatus) void
Methods inherited from class net.minecraft.world.storage.VersionedChunkStorage
completeAll, getDataVersion, getNbt, getWorker, needsBlending, saveContextToNbt, setNbt, updateChunkNbt
-
Field Details
-
PROTO_CHUNK
private static final byte PROTO_CHUNK- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lafb;f:B
intermediary field_29671
Lnet/minecraft/class_3898;field_29671:B
named PROTO_CHUNK
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;PROTO_CHUNK:B
-
UNMARKED_CHUNK
private static final byte UNMARKED_CHUNK- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lafb;g:B
intermediary field_29672
Lnet/minecraft/class_3898;field_29672:B
named UNMARKED_CHUNK
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;UNMARKED_CHUNK:B
-
LEVEL_CHUNK
private static final byte LEVEL_CHUNK- See Also:
- Mappings:
Namespace Name Mixin selector official h
Lafb;h:B
intermediary field_29673
Lnet/minecraft/class_3898;field_29673:B
named LEVEL_CHUNK
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;LEVEL_CHUNK:B
-
LOGGER
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official i
Lafb;i:Lorg/slf4j/Logger;
intermediary field_17212
Lnet/minecraft/class_3898;field_17212:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;LOGGER:Lorg/slf4j/Logger;
-
field_29674
private static final int field_29674- See Also:
- Mappings:
Namespace Name Mixin selector official j
Lafb;j:I
intermediary field_29674
Lnet/minecraft/class_3898;field_29674:I
named field_29674
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;field_29674:I
-
field_36291
private static final int field_36291- See Also:
- Mappings:
Namespace Name Mixin selector official k
Lafb;k:I
intermediary field_36291
Lnet/minecraft/class_3898;field_36291:I
named field_36291
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;field_36291:I
-
field_36384
private static final int field_36384- See Also:
- Mappings:
Namespace Name Mixin selector official l
Lafb;l:I
intermediary field_36384
Lnet/minecraft/class_3898;field_36384:I
named field_36384
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;field_36384:I
-
field_29675
private static final int field_29675- See Also:
- Mappings:
Namespace Name Mixin selector official m
Lafb;m:I
intermediary field_29675
Lnet/minecraft/class_3898;field_29675:I
named field_29675
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;field_29675:I
-
field_29669
public static final int field_29669- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lafb;a:I
intermediary field_29669
Lnet/minecraft/class_3898;field_29669:I
named field_29669
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;field_29669:I
-
MAX_LEVEL
public static final int MAX_LEVELSpecifies the maximum ticket level a chunk can be before a chunk'sChunkHolder.LevelType
isChunkHolder.LevelType.BORDER
.- Mappings:
Namespace Name Mixin selector official b
Lafb;b:I
intermediary field_18239
Lnet/minecraft/class_3898;field_18239:I
named MAX_LEVEL
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;MAX_LEVEL:I
-
field_29670
public static final int field_29670- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lafb;c:I
intermediary field_29670
Lnet/minecraft/class_3898;field_29670:I
named field_29670
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;field_29670:I
-
currentChunkHolders
- Mappings:
Namespace Name Mixin selector official n
Lafb;n:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
intermediary field_17213
Lnet/minecraft/class_3898;field_17213:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
named currentChunkHolders
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;currentChunkHolders:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
chunkHolders
- Mappings:
Namespace Name Mixin selector official o
Lafb;o:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
intermediary field_17220
Lnet/minecraft/class_3898;field_17220:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
named chunkHolders
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunkHolders:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
chunksToUnload
- Mappings:
Namespace Name Mixin selector official p
Lafb;p:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
intermediary field_18807
Lnet/minecraft/class_3898;field_18807:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
named chunksToUnload
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunksToUnload:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
loadedChunks
- Mappings:
Namespace Name Mixin selector official q
Lafb;q:Lit/unimi/dsi/fastutil/longs/LongSet;
intermediary field_18307
Lnet/minecraft/class_3898;field_18307:Lit/unimi/dsi/fastutil/longs/LongSet;
named loadedChunks
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;loadedChunks:Lit/unimi/dsi/fastutil/longs/LongSet;
-
world
- Mappings:
Namespace Name Mixin selector official r
Lafb;r:Lafo;
intermediary field_17214
Lnet/minecraft/class_3898;field_17214:Lnet/minecraft/class_3218;
named world
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;world:Lnet/minecraft/server/world/ServerWorld;
-
lightingProvider
- Mappings:
Namespace Name Mixin selector official s
Lafb;s:Lafr;
intermediary field_17215
Lnet/minecraft/class_3898;field_17215:Lnet/minecraft/class_3227;
named lightingProvider
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;lightingProvider:Lnet/minecraft/server/world/ServerLightingProvider;
-
mainThreadExecutor
- Mappings:
Namespace Name Mixin selector official t
Lafb;t:Layc;
intermediary field_17216
Lnet/minecraft/class_3898;field_17216:Lnet/minecraft/class_1255;
named mainThreadExecutor
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;mainThreadExecutor:Lnet/minecraft/util/thread/ThreadExecutor;
-
chunkGenerator
- Mappings:
Namespace Name Mixin selector official u
Lafb;u:Lcwn;
intermediary field_17218
Lnet/minecraft/class_3898;field_17218:Lnet/minecraft/class_2794;
named chunkGenerator
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunkGenerator:Lnet/minecraft/world/gen/chunk/ChunkGenerator;
-
noiseConfig
- Mappings:
Namespace Name Mixin selector official v
Lafb;v:Ldai;
intermediary field_37278
Lnet/minecraft/class_3898;field_37278:Lnet/minecraft/class_7138;
named noiseConfig
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;noiseConfig:Lnet/minecraft/world/gen/noise/NoiseConfig;
-
persistentStateManagerFactory
- Mappings:
Namespace Name Mixin selector official w
Lafb;w:Ljava/util/function/Supplier;
intermediary field_17705
Lnet/minecraft/class_3898;field_17705:Ljava/util/function/Supplier;
named persistentStateManagerFactory
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;persistentStateManagerFactory:Ljava/util/function/Supplier;
-
pointOfInterestStorage
- Mappings:
Namespace Name Mixin selector official x
Lafb;x:Lblv;
intermediary field_18808
Lnet/minecraft/class_3898;field_18808:Lnet/minecraft/class_4153;
named pointOfInterestStorage
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;pointOfInterestStorage:Lnet/minecraft/world/poi/PointOfInterestStorage;
-
unloadedChunks
- Mappings:
Namespace Name Mixin selector official y
Lafb;y:Lit/unimi/dsi/fastutil/longs/LongSet;
intermediary field_17221
Lnet/minecraft/class_3898;field_17221:Lit/unimi/dsi/fastutil/longs/LongSet;
named unloadedChunks
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;unloadedChunks:Lit/unimi/dsi/fastutil/longs/LongSet;
-
chunkHolderListDirty
private boolean chunkHolderListDirty- Mappings:
Namespace Name Mixin selector official z
Lafb;z:Z
intermediary field_17222
Lnet/minecraft/class_3898;field_17222:Z
named chunkHolderListDirty
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunkHolderListDirty:Z
-
chunkTaskPrioritySystem
- Mappings:
Namespace Name Mixin selector official A
Lafb;A:Lafd;
intermediary field_17223
Lnet/minecraft/class_3898;field_17223:Lnet/minecraft/class_3900;
named chunkTaskPrioritySystem
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunkTaskPrioritySystem:Lnet/minecraft/server/world/ChunkTaskPrioritySystem;
-
worldGenExecutor
- Mappings:
Namespace Name Mixin selector official B
Lafb;B:Laye;
intermediary field_17224
Lnet/minecraft/class_3898;field_17224:Lnet/minecraft/class_3906;
named worldGenExecutor
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;worldGenExecutor:Lnet/minecraft/util/thread/MessageListener;
-
mainExecutor
- Mappings:
Namespace Name Mixin selector official C
Lafb;C:Laye;
intermediary field_17226
Lnet/minecraft/class_3898;field_17226:Lnet/minecraft/class_3906;
named mainExecutor
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;mainExecutor:Lnet/minecraft/util/thread/MessageListener;
-
worldGenerationProgressListener
- Mappings:
Namespace Name Mixin selector official D
Lafb;D:Lafx;
intermediary field_17442
Lnet/minecraft/class_3898;field_17442:Lnet/minecraft/class_3949;
named worldGenerationProgressListener
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;worldGenerationProgressListener:Lnet/minecraft/server/WorldGenerationProgressListener;
-
chunkStatusChangeListener
- Mappings:
Namespace Name Mixin selector official E
Lafb;E:Lcye;
intermediary field_26931
Lnet/minecraft/class_3898;field_26931:Lnet/minecraft/class_5567;
named chunkStatusChangeListener
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunkStatusChangeListener:Lnet/minecraft/world/chunk/ChunkStatusChangeListener;
-
ticketManager
- Mappings:
Namespace Name Mixin selector official F
Lafb;F:Lafb$a;
intermediary field_17228
Lnet/minecraft/class_3898;field_17228:Lnet/minecraft/class_3898$class_3216;
named ticketManager
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;ticketManager:Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$TicketManager;
-
totalChunksLoadedCount
- Mappings:
Namespace Name Mixin selector official G
Lafb;G:Ljava/util/concurrent/atomic/AtomicInteger;
intermediary field_17230
Lnet/minecraft/class_3898;field_17230:Ljava/util/concurrent/atomic/AtomicInteger;
named totalChunksLoadedCount
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;totalChunksLoadedCount:Ljava/util/concurrent/atomic/AtomicInteger;
-
structureTemplateManager
- Mappings:
Namespace Name Mixin selector official H
Lafb;H:Ldnx;
intermediary field_17706
Lnet/minecraft/class_3898;field_17706:Lnet/minecraft/class_3485;
named structureTemplateManager
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;structureTemplateManager:Lnet/minecraft/structure/StructureTemplateManager;
-
saveDir
- Mappings:
Namespace Name Mixin selector official I
Lafb;I:Ljava/lang/String;
intermediary field_17707
Lnet/minecraft/class_3898;field_17707:Ljava/lang/String;
named saveDir
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;saveDir:Ljava/lang/String;
-
playerChunkWatchingManager
- Mappings:
Namespace Name Mixin selector official J
Lafb;J:Lafi;
intermediary field_18241
Lnet/minecraft/class_3898;field_18241:Lnet/minecraft/class_3210;
named playerChunkWatchingManager
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;playerChunkWatchingManager:Lnet/minecraft/server/world/PlayerChunkWatchingManager;
-
entityTrackers
- Mappings:
Namespace Name Mixin selector official K
Lafb;K:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary field_18242
Lnet/minecraft/class_3898;field_18242:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
named entityTrackers
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;entityTrackers:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
chunkToType
- Mappings:
Namespace Name Mixin selector official L
Lafb;L:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
intermediary field_23786
Lnet/minecraft/class_3898;field_23786:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
named chunkToType
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunkToType:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
-
chunkToNextSaveTimeMs
- Mappings:
Namespace Name Mixin selector official M
Lafb;M:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
intermediary field_36383
Lnet/minecraft/class_3898;field_36383:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
named chunkToNextSaveTimeMs
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunkToNextSaveTimeMs:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
-
unloadTaskQueue
- Mappings:
Namespace Name Mixin selector official N
Lafb;N:Ljava/util/Queue;
intermediary field_19343
Lnet/minecraft/class_3898;field_19343:Ljava/util/Queue;
named unloadTaskQueue
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;unloadTaskQueue:Ljava/util/Queue;
-
watchDistance
int watchDistance- Mappings:
Namespace Name Mixin selector official O
Lafb;O:I
intermediary field_18243
Lnet/minecraft/class_3898;field_18243:I
named watchDistance
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;watchDistance:I
-
-
Constructor Details
-
ThreadedAnvilChunkStorage
public ThreadedAnvilChunkStorage(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, int viewDistance, boolean dsync) - Mappings:
Namespace Name Mixin selector official <init>
Lafb;<init>(Lafo;Ldqt$c;Lcom/mojang/datafixers/DataFixer;Ldnx;Ljava/util/concurrent/Executor;Layc;Lcwy;Lcwn;Lafx;Lcye;Ljava/util/function/Supplier;IZ)V
intermediary <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;IZ)V
named <init>
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;<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;IZ)V
-
-
Method Details
-
getChunkGenerator
- Mappings:
Namespace Name Mixin selector official a
Lafb;a()Lcwn;
intermediary method_37897
Lnet/minecraft/class_3898;method_37897()Lnet/minecraft/class_2794;
named getChunkGenerator
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getChunkGenerator()Lnet/minecraft/world/gen/chunk/ChunkGenerator;
-
getNoiseConfig
- Mappings:
Namespace Name Mixin selector official b
Lafb;b()Ldai;
intermediary method_41247
Lnet/minecraft/class_3898;method_41247()Lnet/minecraft/class_7138;
named getNoiseConfig
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getNoiseConfig()Lnet/minecraft/world/gen/noise/NoiseConfig;
-
verifyChunkGenerator
public void verifyChunkGenerator()- Mappings:
Namespace Name Mixin selector official c
Lafb;c()V
intermediary method_37904
Lnet/minecraft/class_3898;method_37904()V
named verifyChunkGenerator
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;verifyChunkGenerator()V
-
getSquaredDistance
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lcfh;Lbaq;)D
intermediary method_18704
Lnet/minecraft/class_3898;method_18704(Lnet/minecraft/class_1923;Lnet/minecraft/class_1297;)D
named getSquaredDistance
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getSquaredDistance(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/entity/Entity;)D
-
isWithinDistance
public static boolean isWithinDistance(int x1, int z1, int x2, int z2, int distance) - Mappings:
Namespace Name Mixin selector official a
Lafb;a(IIIII)Z
intermediary method_39975
Lnet/minecraft/class_3898;method_39975(IIIII)Z
named isWithinDistance
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;isWithinDistance(IIIII)Z
-
isOnDistanceEdge
private static boolean isOnDistanceEdge(int x1, int z1, int x2, int z2, int distance) - Mappings:
Namespace Name Mixin selector official b
Lafb;b(IIIII)Z
intermediary method_39976
Lnet/minecraft/class_3898;method_39976(IIIII)Z
named isOnDistanceEdge
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;isOnDistanceEdge(IIIII)Z
-
getLightingProvider
- Mappings:
Namespace Name Mixin selector official d
Lafb;d()Lafr;
intermediary method_17212
Lnet/minecraft/class_3898;method_17212()Lnet/minecraft/class_3227;
named getLightingProvider
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getLightingProvider()Lnet/minecraft/server/world/ServerLightingProvider;
-
getCurrentChunkHolder
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(J)Lafa;
intermediary method_17255
Lnet/minecraft/class_3898;method_17255(J)Lnet/minecraft/class_3193;
named getCurrentChunkHolder
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getCurrentChunkHolder(J)Lnet/minecraft/server/world/ChunkHolder;
-
getChunkHolder
- Mappings:
Namespace Name Mixin selector official b
Lafb;b(J)Lafa;
intermediary method_17216
Lnet/minecraft/class_3898;method_17216(J)Lnet/minecraft/class_3193;
named getChunkHolder
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getChunkHolder(J)Lnet/minecraft/server/world/ChunkHolder;
-
getCompletedLevelSupplier
- Mappings:
Namespace Name Mixin selector official c
Lafb;c(J)Ljava/util/function/IntSupplier;
intermediary method_17604
Lnet/minecraft/class_3898;method_17604(J)Ljava/util/function/IntSupplier;
named getCompletedLevelSupplier
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getCompletedLevelSupplier(J)Ljava/util/function/IntSupplier;
-
getChunkLoadingDebugInfo
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lcfh;)Ljava/lang/String;
intermediary method_23272
Lnet/minecraft/class_3898;method_23272(Lnet/minecraft/class_1923;)Ljava/lang/String;
named getChunkLoadingDebugInfo
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getChunkLoadingDebugInfo(Lnet/minecraft/util/math/ChunkPos;)Ljava/lang/String;
-
getRegion
private CompletableFuture<com.mojang.datafixers.util.Either<List<Chunk>,ChunkHolder.Unloaded>> getRegion(ChunkPos centerChunk, int margin, IntFunction<ChunkStatus> distanceToStatus) - Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lcfh;ILjava/util/function/IntFunction;)Ljava/util/concurrent/CompletableFuture;
intermediary method_17220
Lnet/minecraft/class_3898;method_17220(Lnet/minecraft/class_1923;ILjava/util/function/IntFunction;)Ljava/util/concurrent/CompletableFuture;
named getRegion
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getRegion(Lnet/minecraft/util/math/ChunkPos;ILjava/util/function/IntFunction;)Ljava/util/concurrent/CompletableFuture;
-
crash
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(Ljava/lang/IllegalStateException;Ljava/lang/String;)Lz;
intermediary method_40067
Lnet/minecraft/class_3898;method_40067(Ljava/lang/IllegalStateException;Ljava/lang/String;)Lnet/minecraft/class_148;
named crash
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;crash(Ljava/lang/IllegalStateException;Ljava/lang/String;)Lnet/minecraft/util/crash/CrashException;
-
makeChunkEntitiesTickable
public CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> makeChunkEntitiesTickable(ChunkPos pos) - Mappings:
Namespace Name Mixin selector official b
Lafb;b(Lcfh;)Ljava/util/concurrent/CompletableFuture;
intermediary method_17247
Lnet/minecraft/class_3898;method_17247(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;
named makeChunkEntitiesTickable
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;makeChunkEntitiesTickable(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
-
setLevel
@Nullable @Nullable ChunkHolder setLevel(long pos, int level, @Nullable @Nullable ChunkHolder holder, int int2) - Mappings:
Namespace Name Mixin selector official a
Lafb;a(JILafa;I)Lafa;
intermediary method_17217
Lnet/minecraft/class_3898;method_17217(JILnet/minecraft/class_3193;I)Lnet/minecraft/class_3193;
named setLevel
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;setLevel(JILnet/minecraft/server/world/ChunkHolder;I)Lnet/minecraft/server/world/ChunkHolder;
-
close
- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classVersionedChunkStorage
- Throws:
IOException
-
save
protected void save(boolean flush) - Mappings:
Namespace Name Mixin selector official a
Lafb;a(Z)V
intermediary method_17242
Lnet/minecraft/class_3898;method_17242(Z)V
named save
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;save(Z)V
-
tick
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(Ljava/util/function/BooleanSupplier;)V
intermediary method_17233
Lnet/minecraft/class_3898;method_17233(Ljava/util/function/BooleanSupplier;)V
named tick
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;tick(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 official e
Lafb;e()Z
intermediary method_39992
Lnet/minecraft/class_3898;method_39992()Z
named shouldDelayShutdown
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;shouldDelayShutdown()Z
-
unloadChunks
- Mappings:
Namespace Name Mixin selector official b
Lafb;b(Ljava/util/function/BooleanSupplier;)V
intermediary method_20605
Lnet/minecraft/class_3898;method_20605(Ljava/util/function/BooleanSupplier;)V
named unloadChunks
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;unloadChunks(Ljava/util/function/BooleanSupplier;)V
-
tryUnloadChunk
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(JLafa;)V
intermediary method_20458
Lnet/minecraft/class_3898;method_20458(JLnet/minecraft/class_3193;)V
named tryUnloadChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;tryUnloadChunk(JLnet/minecraft/server/world/ChunkHolder;)V
-
updateHolderMap
protected boolean updateHolderMap()- Mappings:
Namespace Name Mixin selector official f
Lafb;f()Z
intermediary method_17244
Lnet/minecraft/class_3898;method_17244()Z
named updateHolderMap
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;updateHolderMap()Z
-
getChunk
public CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> getChunk(ChunkHolder holder, ChunkStatus requiredStatus) - Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lafa;Lcwq;)Ljava/util/concurrent/CompletableFuture;
intermediary method_17236
Lnet/minecraft/class_3898;method_17236(Lnet/minecraft/class_3193;Lnet/minecraft/class_2806;)Ljava/util/concurrent/CompletableFuture;
named getChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getChunk(Lnet/minecraft/server/world/ChunkHolder;Lnet/minecraft/world/chunk/ChunkStatus;)Ljava/util/concurrent/CompletableFuture;
-
loadChunk
private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> loadChunk(ChunkPos pos) - Mappings:
Namespace Name Mixin selector official g
Lafb;g(Lcfh;)Ljava/util/concurrent/CompletableFuture;
intermediary method_20619
Lnet/minecraft/class_3898;method_20619(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;
named loadChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;loadChunk(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
-
containsStatus
- Mappings:
Namespace Name Mixin selector official b
Lafb;b(Lpj;)Z
intermediary method_43380
Lnet/minecraft/class_3898;method_43380(Lnet/minecraft/class_2487;)Z
named containsStatus
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;containsStatus(Lnet/minecraft/nbt/NbtCompound;)Z
-
recoverFromException
private com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded> recoverFromException(Throwable throwable, ChunkPos chunkPos) - Mappings:
Namespace Name Mixin selector official a
Lafb;a(Ljava/lang/Throwable;Lcfh;)Lcom/mojang/datafixers/util/Either;
intermediary method_43376
Lnet/minecraft/class_3898;method_43376(Ljava/lang/Throwable;Lnet/minecraft/class_1923;)Lcom/mojang/datafixers/util/Either;
named recoverFromException
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;recoverFromException(Ljava/lang/Throwable;Lnet/minecraft/util/math/ChunkPos;)Lcom/mojang/datafixers/util/Either;
-
getProtoChunk
- Mappings:
Namespace Name Mixin selector official h
Lafb;h(Lcfh;)Lcwm;
intermediary method_43382
Lnet/minecraft/class_3898;method_43382(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2791;
named getProtoChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getProtoChunk(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/world/chunk/Chunk;
-
markAsProtoChunk
- Mappings:
Namespace Name Mixin selector official i
Lafb;i(Lcfh;)V
intermediary method_27054
Lnet/minecraft/class_3898;method_27054(Lnet/minecraft/class_1923;)V
named markAsProtoChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;markAsProtoChunk(Lnet/minecraft/util/math/ChunkPos;)V
-
mark
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lcfh;Lcwq$a;)B
intermediary method_27053
Lnet/minecraft/class_3898;method_27053(Lnet/minecraft/class_1923;Lnet/minecraft/class_2806$class_2808;)B
named mark
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;mark(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/chunk/ChunkStatus$ChunkType;)B
-
upgradeChunk
private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> upgradeChunk(ChunkHolder holder, ChunkStatus requiredStatus) - Mappings:
Namespace Name Mixin selector official b
Lafb;b(Lafa;Lcwq;)Ljava/util/concurrent/CompletableFuture;
intermediary method_20617
Lnet/minecraft/class_3898;method_20617(Lnet/minecraft/class_3193;Lnet/minecraft/class_2806;)Ljava/util/concurrent/CompletableFuture;
named upgradeChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;upgradeChunk(Lnet/minecraft/server/world/ChunkHolder;Lnet/minecraft/world/chunk/ChunkStatus;)Ljava/util/concurrent/CompletableFuture;
-
releaseLightTicket
- Mappings:
Namespace Name Mixin selector official c
Lafb;c(Lcfh;)V
intermediary method_20441
Lnet/minecraft/class_3898;method_20441(Lnet/minecraft/class_1923;)V
named releaseLightTicket
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;releaseLightTicket(Lnet/minecraft/util/math/ChunkPos;)V
-
getRequiredStatusForGeneration
private ChunkStatus getRequiredStatusForGeneration(ChunkStatus centerChunkTargetStatus, int distance) - Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lcwq;I)Lcwq;
intermediary method_17229
Lnet/minecraft/class_3898;method_17229(Lnet/minecraft/class_2806;I)Lnet/minecraft/class_2806;
named getRequiredStatusForGeneration
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getRequiredStatusForGeneration(Lnet/minecraft/world/chunk/ChunkStatus;I)Lnet/minecraft/world/chunk/ChunkStatus;
-
addEntitiesFromNbt
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lafo;Ljava/util/List;)V
intermediary method_31413
Lnet/minecraft/class_3898;method_31413(Lnet/minecraft/class_3218;Ljava/util/List;)V
named addEntitiesFromNbt
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;addEntitiesFromNbt(Lnet/minecraft/server/world/ServerWorld;Ljava/util/List;)V
-
convertToFullChunk
private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> convertToFullChunk(ChunkHolder chunkHolder) - Mappings:
Namespace Name Mixin selector official c
Lafb;c(Lafa;)Ljava/util/concurrent/CompletableFuture;
intermediary method_17226
Lnet/minecraft/class_3898;method_17226(Lnet/minecraft/class_3193;)Ljava/util/concurrent/CompletableFuture;
named convertToFullChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;convertToFullChunk(Lnet/minecraft/server/world/ChunkHolder;)Ljava/util/concurrent/CompletableFuture;
-
makeChunkTickable
public CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> makeChunkTickable(ChunkHolder holder) - Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lafa;)Ljava/util/concurrent/CompletableFuture;
intermediary method_17235
Lnet/minecraft/class_3898;method_17235(Lnet/minecraft/class_3193;)Ljava/util/concurrent/CompletableFuture;
named makeChunkTickable
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;makeChunkTickable(Lnet/minecraft/server/world/ChunkHolder;)Ljava/util/concurrent/CompletableFuture;
-
makeChunkAccessible
public CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> makeChunkAccessible(ChunkHolder holder) - Mappings:
Namespace Name Mixin selector official b
Lafb;b(Lafa;)Ljava/util/concurrent/CompletableFuture;
intermediary method_31417
Lnet/minecraft/class_3898;method_31417(Lnet/minecraft/class_3193;)Ljava/util/concurrent/CompletableFuture;
named makeChunkAccessible
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;makeChunkAccessible(Lnet/minecraft/server/world/ChunkHolder;)Ljava/util/concurrent/CompletableFuture;
-
getTotalChunksLoadedCount
public int getTotalChunksLoadedCount()- Mappings:
Namespace Name Mixin selector official g
Lafb;g()I
intermediary method_17253
Lnet/minecraft/class_3898;method_17253()I
named getTotalChunksLoadedCount
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getTotalChunksLoadedCount()I
-
save
- Mappings:
Namespace Name Mixin selector official d
Lafb;d(Lafa;)Z
intermediary method_39925
Lnet/minecraft/class_3898;method_39925(Lnet/minecraft/class_3193;)Z
named save
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;save(Lnet/minecraft/server/world/ChunkHolder;)Z
-
save
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lcwm;)Z
intermediary method_17228
Lnet/minecraft/class_3898;method_17228(Lnet/minecraft/class_2791;)Z
named save
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;save(Lnet/minecraft/world/chunk/Chunk;)Z
-
isLevelChunk
- Mappings:
Namespace Name Mixin selector official j
Lafb;j(Lcfh;)Z
intermediary method_27055
Lnet/minecraft/class_3898;method_27055(Lnet/minecraft/class_1923;)Z
named isLevelChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;isLevelChunk(Lnet/minecraft/util/math/ChunkPos;)Z
-
setViewDistance
protected void setViewDistance(int watchDistance) - Mappings:
Namespace Name Mixin selector official a
Lafb;a(I)V
intermediary method_17214
Lnet/minecraft/class_3898;method_17214(I)V
named setViewDistance
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;setViewDistance(I)V
-
sendWatchPackets
protected void sendWatchPackets(ServerPlayerEntity player, ChunkPos pos, MutableObject<ChunkDataS2CPacket> packet, boolean oldWithinViewDistance, boolean newWithinViewDistance) - Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lafp;Lcfh;Lorg/apache/commons/lang3/mutable/MutableObject;ZZ)V
intermediary method_17241
Lnet/minecraft/class_3898;method_17241(Lnet/minecraft/class_3222;Lnet/minecraft/class_1923;Lorg/apache/commons/lang3/mutable/MutableObject;ZZ)V
named sendWatchPackets
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;sendWatchPackets(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/math/ChunkPos;Lorg/apache/commons/lang3/mutable/MutableObject;ZZ)V
-
getLoadedChunkCount
public int getLoadedChunkCount()- Mappings:
Namespace Name Mixin selector official h
Lafb;h()I
intermediary method_17260
Lnet/minecraft/class_3898;method_17260()I
named getLoadedChunkCount
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getLoadedChunkCount()I
-
getTicketManager
- Mappings:
Namespace Name Mixin selector official i
Lafb;i()Lafh;
intermediary method_17263
Lnet/minecraft/class_3898;method_17263()Lnet/minecraft/class_3204;
named getTicketManager
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getTicketManager()Lnet/minecraft/server/world/ChunkTicketManager;
-
entryIterator
- Mappings:
Namespace Name Mixin selector official j
Lafb;j()Ljava/lang/Iterable;
intermediary method_17264
Lnet/minecraft/class_3898;method_17264()Ljava/lang/Iterable;
named entryIterator
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;entryIterator()Ljava/lang/Iterable;
-
dump
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(Ljava/io/Writer;)V
intermediary method_21619
Lnet/minecraft/class_3898;method_21619(Ljava/io/Writer;)V
named dump
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;dump(Ljava/io/Writer;)V
-
getFutureStatus
private static String getFutureStatus(CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk, ChunkHolder.Unloaded>> future) - Mappings:
Namespace Name Mixin selector official a
Lafb;a(Ljava/util/concurrent/CompletableFuture;)Ljava/lang/String;
intermediary method_21676
Lnet/minecraft/class_3898;method_21676(Ljava/util/concurrent/CompletableFuture;)Ljava/lang/String;
named getFutureStatus
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getFutureStatus(Ljava/util/concurrent/CompletableFuture;)Ljava/lang/String;
-
getUpdatedChunkNbt
- Mappings:
Namespace Name Mixin selector official k
Lafb;k(Lcfh;)Ljava/util/concurrent/CompletableFuture;
intermediary method_43383
Lnet/minecraft/class_3898;method_43383(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;
named getUpdatedChunkNbt
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getUpdatedChunkNbt(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
-
updateChunkNbt
- Mappings:
Namespace Name Mixin selector official c
Lafb;c(Lpj;)Lpj;
intermediary method_43381
Lnet/minecraft/class_3898;method_43381(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named updateChunkNbt
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;updateChunkNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
-
shouldTick
- Mappings:
Namespace Name Mixin selector official d
Lafb;d(Lcfh;)Z
intermediary method_38783
Lnet/minecraft/class_3898;method_38783(Lnet/minecraft/class_1923;)Z
named shouldTick
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;shouldTick(Lnet/minecraft/util/math/ChunkPos;)Z
-
getPlayersWatchingChunk
- Mappings:
Namespace Name Mixin selector official e
Lafb;e(Lcfh;)Ljava/util/List;
intermediary method_37907
Lnet/minecraft/class_3898;method_37907(Lnet/minecraft/class_1923;)Ljava/util/List;
named getPlayersWatchingChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getPlayersWatchingChunk(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/List;
-
canTickChunk
Returns whether theplayer
can tick the chunk atpos
.- Returns:
- whether the
player
can 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 official a
Lafb;a(Lafp;Lcfh;)Z
intermediary method_38782
Lnet/minecraft/class_3898;method_38782(Lnet/minecraft/class_3222;Lnet/minecraft/class_1923;)Z
named canTickChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;canTickChunk(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/math/ChunkPos;)Z
-
doesNotGenerateChunks
- Mappings:
Namespace Name Mixin selector official b
Lafb;b(Lafp;)Z
intermediary method_18722
Lnet/minecraft/class_3898;method_18722(Lnet/minecraft/class_3222;)Z
named doesNotGenerateChunks
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;doesNotGenerateChunks(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
-
handlePlayerAddedOrRemoved
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lafp;Z)V
intermediary method_18714
Lnet/minecraft/class_3898;method_18714(Lnet/minecraft/class_3222;Z)V
named handlePlayerAddedOrRemoved
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;handlePlayerAddedOrRemoved(Lnet/minecraft/server/network/ServerPlayerEntity;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 official c
Lafb;c(Lafp;)Lhq;
intermediary method_20726
Lnet/minecraft/class_3898;method_20726(Lnet/minecraft/class_3222;)Lnet/minecraft/class_4076;
named updateWatchedSection
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;updateWatchedSection(Lnet/minecraft/server/network/ServerPlayerEntity;)Lnet/minecraft/util/math/ChunkSectionPos;
-
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 official a
Lafb;a(Lafp;)V
intermediary method_18713
Lnet/minecraft/class_3898;method_18713(Lnet/minecraft/class_3222;)V
named updatePosition
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;updatePosition(Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
getPlayersWatchingChunk
public List<ServerPlayerEntity> getPlayersWatchingChunk(ChunkPos chunkPos, boolean onlyOnWatchDistanceEdge) - Specified by:
getPlayersWatchingChunk
in interfaceChunkHolder.PlayersWatchingChunkProvider
- Mappings:
Namespace Name Mixin selector official a
Lafa$e;a(Lcfh;Z)Ljava/util/List;
intermediary method_17210
Lnet/minecraft/class_3193$class_3897;method_17210(Lnet/minecraft/class_1923;Z)Ljava/util/List;
named getPlayersWatchingChunk
Lnet/minecraft/server/world/ChunkHolder$PlayersWatchingChunkProvider;getPlayersWatchingChunk(Lnet/minecraft/util/math/ChunkPos;Z)Ljava/util/List;
-
loadEntity
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lbaq;)V
intermediary method_18701
Lnet/minecraft/class_3898;method_18701(Lnet/minecraft/class_1297;)V
named loadEntity
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;loadEntity(Lnet/minecraft/entity/Entity;)V
-
unloadEntity
- Mappings:
Namespace Name Mixin selector official b
Lafb;b(Lbaq;)V
intermediary method_18716
Lnet/minecraft/class_3898;method_18716(Lnet/minecraft/class_1297;)V
named unloadEntity
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;unloadEntity(Lnet/minecraft/entity/Entity;)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 official k
Lafb;k()V
intermediary method_18727
Lnet/minecraft/class_3898;method_18727()V
named tickEntityMovement
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;tickEntityMovement()V
-
sendToOtherNearbyPlayers
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lbaq;Lso;)V
intermediary method_18702
Lnet/minecraft/class_3898;method_18702(Lnet/minecraft/class_1297;Lnet/minecraft/class_2596;)V
named sendToOtherNearbyPlayers
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;sendToOtherNearbyPlayers(Lnet/minecraft/entity/Entity;Lnet/minecraft/network/Packet;)V
-
sendToNearbyPlayers
- Mappings:
Namespace Name Mixin selector official b
Lafb;b(Lbaq;Lso;)V
intermediary method_18717
Lnet/minecraft/class_3898;method_18717(Lnet/minecraft/class_1297;Lnet/minecraft/class_2596;)V
named sendToNearbyPlayers
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;sendToNearbyPlayers(Lnet/minecraft/entity/Entity;Lnet/minecraft/network/Packet;)V
-
sendChunkDataPackets
private void sendChunkDataPackets(ServerPlayerEntity player, MutableObject<ChunkDataS2CPacket> cachedDataPacket, WorldChunk chunk) - Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lafp;Lorg/apache/commons/lang3/mutable/MutableObject;Lcww;)V
intermediary method_18715
Lnet/minecraft/class_3898;method_18715(Lnet/minecraft/class_3222;Lorg/apache/commons/lang3/mutable/MutableObject;Lnet/minecraft/class_2818;)V
named sendChunkDataPackets
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;sendChunkDataPackets(Lnet/minecraft/server/network/ServerPlayerEntity;Lorg/apache/commons/lang3/mutable/MutableObject;Lnet/minecraft/world/chunk/WorldChunk;)V
-
getPointOfInterestStorage
- Mappings:
Namespace Name Mixin selector official l
Lafb;l()Lblv;
intermediary method_19488
Lnet/minecraft/class_3898;method_19488()Lnet/minecraft/class_4153;
named getPointOfInterestStorage
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getPointOfInterestStorage()Lnet/minecraft/world/poi/PointOfInterestStorage;
-
getSaveDir
- Mappings:
Namespace Name Mixin selector official m
Lafb;m()Ljava/lang/String;
intermediary method_37476
Lnet/minecraft/class_3898;method_37476()Ljava/lang/String;
named getSaveDir
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getSaveDir()Ljava/lang/String;
-
onChunkStatusChange
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(Lcfh;Lafa$c;)V
intermediary method_31414
Lnet/minecraft/class_3898;method_31414(Lnet/minecraft/class_1923;Lnet/minecraft/class_3193$class_3194;)V
named onChunkStatusChange
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;onChunkStatusChange(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/server/world/ChunkHolder$LevelType;)V
-