Package net.minecraft.world.chunk
Class AbstractChunkHolder
java.lang.Object
net.minecraft.world.chunk.AbstractChunkHolder
- Direct Known Subclasses:
ChunkHolder
- Mappings:
Namespace Name named net/minecraft/world/chunk/AbstractChunkHolder
intermediary net/minecraft/class_9761
official ary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AtomicReferenceArray
<CompletableFuture<OptionalChunk<Chunk>>> private final AtomicReference
<ChunkLoader> private final AtomicReference
<ChunkStatus> private static final OptionalChunk
<Chunk> protected final ChunkPos
private final AtomicInteger
private CompletableFuture
<Void> private @Nullable ChunkStatus
private static final List
<ChunkStatus> static final OptionalChunk
<Chunk> static final CompletableFuture
<OptionalChunk<Chunk>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
cannotBeLoaded
(ChunkStatus status) (package private) void
clearLoader
(ChunkLoader loader) protected abstract void
combineSavingFuture
(CompletableFuture<?> savingFuture) private void
completeChunkFuture
(ChunkStatus status, Chunk chunk) private void
createLoader
(ServerChunkLoadingManager chunkLoadingManager, @Nullable ChunkStatus requestedStatus) void
List
<com.mojang.datafixers.util.Pair<ChunkStatus, CompletableFuture<OptionalChunk<Chunk>>>> (package private) CompletableFuture
<OptionalChunk<Chunk>> generate
(ChunkGenerationStep step, ChunkLoadingManager chunkLoadingManager, BoundedRegionArray<AbstractChunkHolder> chunks) abstract int
abstract int
getLevel()
private @Nullable ChunkStatus
getMaxPendingStatus
(@Nullable ChunkStatus checkUpperBound) private CompletableFuture
<OptionalChunk<Chunk>> getOrCreateFuture
(ChunkStatus status) getOrNull
(ChunkStatus requestedStatus) getPos()
getUncheckedOrNull
(ChunkStatus requestedStatus) void
load
(ChunkStatus requestedStatus, ServerChunkLoadingManager chunkLoadingManager) private boolean
progressStatus
(ChunkStatus nextStatus) Progresses tonextStatus
if that is actually the next status for the current status.void
replaceWith
(WrapperProtoChunk chunk) private void
unload
(int statusIndex, CompletableFuture<OptionalChunk<Chunk>> previousFuture) private void
unload
(@Nullable ChunkStatus from, ChunkStatus to) protected void
updateStatus
(ServerChunkLoadingManager chunkLoadingManager)
-
Field Details
-
STATUSES
- Mappings:
Namespace Name Mixin selector named STATUSES
Lnet/minecraft/world/chunk/AbstractChunkHolder;STATUSES:Ljava/util/List;
intermediary field_51865
Lnet/minecraft/class_9761;field_51865:Ljava/util/List;
official a
Lary;a:Ljava/util/List;
-
NOT_DONE
- Mappings:
Namespace Name Mixin selector named NOT_DONE
Lnet/minecraft/world/chunk/AbstractChunkHolder;NOT_DONE:Lnet/minecraft/server/world/OptionalChunk;
intermediary field_51869
Lnet/minecraft/class_9761;field_51869:Lnet/minecraft/class_9259;
official e
Lary;e:Larn;
-
UNLOADED
- Mappings:
Namespace Name Mixin selector named UNLOADED
Lnet/minecraft/world/chunk/AbstractChunkHolder;UNLOADED:Lnet/minecraft/server/world/OptionalChunk;
intermediary field_51866
Lnet/minecraft/class_9761;field_51866:Lnet/minecraft/class_9259;
official b
Lary;b:Larn;
-
UNLOADED_FUTURE
- Mappings:
Namespace Name Mixin selector named UNLOADED_FUTURE
Lnet/minecraft/world/chunk/AbstractChunkHolder;UNLOADED_FUTURE:Ljava/util/concurrent/CompletableFuture;
intermediary field_51867
Lnet/minecraft/class_9761;field_51867:Ljava/util/concurrent/CompletableFuture;
official c
Lary;c:Ljava/util/concurrent/CompletableFuture;
-
pos
- Mappings:
Namespace Name Mixin selector named pos
Lnet/minecraft/world/chunk/AbstractChunkHolder;pos:Lnet/minecraft/util/math/ChunkPos;
intermediary field_51868
Lnet/minecraft/class_9761;field_51868:Lnet/minecraft/class_1923;
official d
Lary;d:Ldgn;
-
status
- Mappings:
Namespace Name Mixin selector named status
Lnet/minecraft/world/chunk/AbstractChunkHolder;status:Lnet/minecraft/world/chunk/ChunkStatus;
intermediary field_51870
Lnet/minecraft/class_9761;field_51870:Lnet/minecraft/class_2806;
official f
Lary;f:Leaq;
-
currentStatus
- Mappings:
Namespace Name Mixin selector named currentStatus
Lnet/minecraft/world/chunk/AbstractChunkHolder;currentStatus:Ljava/util/concurrent/atomic/AtomicReference;
intermediary field_51871
Lnet/minecraft/class_9761;field_51871:Ljava/util/concurrent/atomic/AtomicReference;
official g
Lary;g:Ljava/util/concurrent/atomic/AtomicReference;
-
chunkFuturesByStatus
- Mappings:
Namespace Name Mixin selector named chunkFuturesByStatus
Lnet/minecraft/world/chunk/AbstractChunkHolder;chunkFuturesByStatus:Ljava/util/concurrent/atomic/AtomicReferenceArray;
intermediary field_51872
Lnet/minecraft/class_9761;field_51872:Ljava/util/concurrent/atomic/AtomicReferenceArray;
official h
Lary;h:Ljava/util/concurrent/atomic/AtomicReferenceArray;
-
chunkLoader
- Mappings:
Namespace Name Mixin selector named chunkLoader
Lnet/minecraft/world/chunk/AbstractChunkHolder;chunkLoader:Ljava/util/concurrent/atomic/AtomicReference;
intermediary field_51873
Lnet/minecraft/class_9761;field_51873:Ljava/util/concurrent/atomic/AtomicReference;
official i
Lary;i:Ljava/util/concurrent/atomic/AtomicReference;
-
refCount
- Mappings:
Namespace Name Mixin selector named refCount
Lnet/minecraft/world/chunk/AbstractChunkHolder;refCount:Ljava/util/concurrent/atomic/AtomicInteger;
intermediary field_51874
Lnet/minecraft/class_9761;field_51874:Ljava/util/concurrent/atomic/AtomicInteger;
official j
Lary;j:Ljava/util/concurrent/atomic/AtomicInteger;
-
referenceFuture
- Mappings:
Namespace Name Mixin selector named referenceFuture
Lnet/minecraft/world/chunk/AbstractChunkHolder;referenceFuture:Ljava/util/concurrent/CompletableFuture;
intermediary field_54045
Lnet/minecraft/class_9761;field_54045:Ljava/util/concurrent/CompletableFuture;
official k
Lary;k:Ljava/util/concurrent/CompletableFuture;
-
-
Constructor Details
-
AbstractChunkHolder
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/chunk/AbstractChunkHolder;<init>(Lnet/minecraft/util/math/ChunkPos;)V
intermediary <init>
Lnet/minecraft/class_9761;<init>(Lnet/minecraft/class_1923;)V
official <init>
Lary;<init>(Ldgn;)V
-
-
Method Details
-
load
public CompletableFuture<OptionalChunk<Chunk>> load(ChunkStatus requestedStatus, ServerChunkLoadingManager chunkLoadingManager) - Mappings:
Namespace Name Mixin selector named load
Lnet/minecraft/world/chunk/AbstractChunkHolder;load(Lnet/minecraft/world/chunk/ChunkStatus;Lnet/minecraft/server/world/ServerChunkLoadingManager;)Ljava/util/concurrent/CompletableFuture;
intermediary method_60458
Lnet/minecraft/class_9761;method_60458(Lnet/minecraft/class_2806;Lnet/minecraft/class_3898;)Ljava/util/concurrent/CompletableFuture;
official a
Lary;a(Leaq;Larm;)Ljava/util/concurrent/CompletableFuture;
-
generate
CompletableFuture<OptionalChunk<Chunk>> generate(ChunkGenerationStep step, ChunkLoadingManager chunkLoadingManager, BoundedRegionArray<AbstractChunkHolder> chunks) - Mappings:
Namespace Name Mixin selector named generate
Lnet/minecraft/world/chunk/AbstractChunkHolder;generate(Lnet/minecraft/world/chunk/ChunkGenerationStep;Lnet/minecraft/world/ChunkLoadingManager;Lnet/minecraft/util/collection/BoundedRegionArray;)Ljava/util/concurrent/CompletableFuture;
intermediary method_60461
Lnet/minecraft/class_9761;method_60461(Lnet/minecraft/class_9770;Lnet/minecraft/class_9760;Lnet/minecraft/class_9762;)Ljava/util/concurrent/CompletableFuture;
official a
Lary;a(Leat;Larx;Lbay;)Ljava/util/concurrent/CompletableFuture;
-
updateStatus
- Mappings:
Namespace Name Mixin selector named updateStatus
Lnet/minecraft/world/chunk/AbstractChunkHolder;updateStatus(Lnet/minecraft/server/world/ServerChunkLoadingManager;)V
intermediary method_60454
Lnet/minecraft/class_9761;method_60454(Lnet/minecraft/class_3898;)V
official a
Lary;a(Larm;)V
-
replaceWith
- Mappings:
Namespace Name Mixin selector named replaceWith
Lnet/minecraft/world/chunk/AbstractChunkHolder;replaceWith(Lnet/minecraft/world/chunk/WrapperProtoChunk;)V
intermediary method_60456
Lnet/minecraft/class_9761;method_60456(Lnet/minecraft/class_2821;)V
official a
Lary;a(Ldzy;)V
-
clearLoader
- Mappings:
Namespace Name Mixin selector named clearLoader
Lnet/minecraft/world/chunk/AbstractChunkHolder;clearLoader(Lnet/minecraft/world/chunk/ChunkLoader;)V
intermediary method_60453
Lnet/minecraft/class_9761;method_60453(Lnet/minecraft/class_9759;)V
official a
Lary;a(Larj;)V
-
createLoader
private void createLoader(ServerChunkLoadingManager chunkLoadingManager, @Nullable @Nullable ChunkStatus requestedStatus) - Mappings:
Namespace Name Mixin selector named createLoader
Lnet/minecraft/world/chunk/AbstractChunkHolder;createLoader(Lnet/minecraft/server/world/ServerChunkLoadingManager;Lnet/minecraft/world/chunk/ChunkStatus;)V
intermediary method_60455
Lnet/minecraft/class_9761;method_60455(Lnet/minecraft/class_3898;Lnet/minecraft/class_2806;)V
official a
Lary;a(Larm;Leaq;)V
-
getOrCreateFuture
- Mappings:
Namespace Name Mixin selector named getOrCreateFuture
Lnet/minecraft/world/chunk/AbstractChunkHolder;getOrCreateFuture(Lnet/minecraft/world/chunk/ChunkStatus;)Ljava/util/concurrent/CompletableFuture;
intermediary method_60464
Lnet/minecraft/class_9761;method_60464(Lnet/minecraft/class_2806;)Ljava/util/concurrent/CompletableFuture;
official c
Lary;c(Leaq;)Ljava/util/concurrent/CompletableFuture;
-
unload
- Mappings:
Namespace Name Mixin selector named unload
Lnet/minecraft/world/chunk/AbstractChunkHolder;unload(Lnet/minecraft/world/chunk/ChunkStatus;Lnet/minecraft/world/chunk/ChunkStatus;)V
intermediary method_60460
Lnet/minecraft/class_9761;method_60460(Lnet/minecraft/class_2806;Lnet/minecraft/class_2806;)V
official a
Lary;a(Leaq;Leaq;)V
-
unload
- Mappings:
Namespace Name Mixin selector named unload
Lnet/minecraft/world/chunk/AbstractChunkHolder;unload(ILjava/util/concurrent/CompletableFuture;)V
intermediary method_60452
Lnet/minecraft/class_9761;method_60452(ILjava/util/concurrent/CompletableFuture;)V
official a
Lary;a(ILjava/util/concurrent/CompletableFuture;)V
-
completeChunkFuture
- Mappings:
Namespace Name Mixin selector named completeChunkFuture
Lnet/minecraft/world/chunk/AbstractChunkHolder;completeChunkFuture(Lnet/minecraft/world/chunk/ChunkStatus;Lnet/minecraft/world/chunk/Chunk;)V
intermediary method_60459
Lnet/minecraft/class_9761;method_60459(Lnet/minecraft/class_2806;Lnet/minecraft/class_2791;)V
official a
Lary;a(Leaq;Ldzp;)V
-
getMaxPendingStatus
@Nullable private @Nullable ChunkStatus getMaxPendingStatus(@Nullable @Nullable ChunkStatus checkUpperBound) - Mappings:
Namespace Name Mixin selector named getMaxPendingStatus
Lnet/minecraft/world/chunk/AbstractChunkHolder;getMaxPendingStatus(Lnet/minecraft/world/chunk/ChunkStatus;)Lnet/minecraft/world/chunk/ChunkStatus;
intermediary method_60465
Lnet/minecraft/class_9761;method_60465(Lnet/minecraft/class_2806;)Lnet/minecraft/class_2806;
official d
Lary;d(Leaq;)Leaq;
-
progressStatus
Progresses tonextStatus
if that is actually the next status for the current status. Does nothing ifnextStatus
is the same as the current status (or earlier).- Returns:
- whether the progress was made
- Throws:
IllegalStateException
- when skipping intermediate statuses between the current andnextStatus
- Mappings:
Namespace Name Mixin selector named progressStatus
Lnet/minecraft/world/chunk/AbstractChunkHolder;progressStatus(Lnet/minecraft/world/chunk/ChunkStatus;)Z
intermediary method_60466
Lnet/minecraft/class_9761;method_60466(Lnet/minecraft/class_2806;)Z
official e
Lary;e(Leaq;)Z
-
cannotBeLoaded
- Mappings:
Namespace Name Mixin selector named cannotBeLoaded
Lnet/minecraft/world/chunk/AbstractChunkHolder;cannotBeLoaded(Lnet/minecraft/world/chunk/ChunkStatus;)Z
intermediary method_60467
Lnet/minecraft/class_9761;method_60467(Lnet/minecraft/class_2806;)Z
official f
Lary;f(Leaq;)Z
-
combineSavingFuture
- Mappings:
Namespace Name Mixin selector named combineSavingFuture
Lnet/minecraft/world/chunk/AbstractChunkHolder;combineSavingFuture(Ljava/util/concurrent/CompletableFuture;)V
intermediary method_39967
Lnet/minecraft/class_9761;method_39967(Ljava/util/concurrent/CompletableFuture;)V
official b
Lary;b(Ljava/util/concurrent/CompletableFuture;)V
-
incrementRefCount
public void incrementRefCount()- Mappings:
Namespace Name Mixin selector named incrementRefCount
Lnet/minecraft/world/chunk/AbstractChunkHolder;incrementRefCount()V
intermediary method_60468
Lnet/minecraft/class_9761;method_60468()V
official m
Lary;m()V
-
decrementRefCount
public void decrementRefCount()- Mappings:
Namespace Name Mixin selector named decrementRefCount
Lnet/minecraft/world/chunk/AbstractChunkHolder;decrementRefCount()V
intermediary method_60469
Lnet/minecraft/class_9761;method_60469()V
official n
Lary;n()V
-
getUncheckedOrNull
- Mappings:
Namespace Name Mixin selector named getUncheckedOrNull
Lnet/minecraft/world/chunk/AbstractChunkHolder;getUncheckedOrNull(Lnet/minecraft/world/chunk/ChunkStatus;)Lnet/minecraft/world/chunk/Chunk;
intermediary method_60457
Lnet/minecraft/class_9761;method_60457(Lnet/minecraft/class_2806;)Lnet/minecraft/class_2791;
official a
Lary;a(Leaq;)Ldzp;
-
getOrNull
- Mappings:
Namespace Name Mixin selector named getOrNull
Lnet/minecraft/world/chunk/AbstractChunkHolder;getOrNull(Lnet/minecraft/world/chunk/ChunkStatus;)Lnet/minecraft/world/chunk/Chunk;
intermediary method_60463
Lnet/minecraft/class_9761;method_60463(Lnet/minecraft/class_2806;)Lnet/minecraft/class_2791;
official b
Lary;b(Leaq;)Ldzp;
-
getLatest
- Mappings:
Namespace Name Mixin selector named getLatest
Lnet/minecraft/world/chunk/AbstractChunkHolder;getLatest()Lnet/minecraft/world/chunk/Chunk;
intermediary method_60471
Lnet/minecraft/class_9761;method_60471()Lnet/minecraft/class_2791;
official o
Lary;o()Ldzp;
-
getActualStatus
- Mappings:
Namespace Name Mixin selector named getActualStatus
Lnet/minecraft/world/chunk/AbstractChunkHolder;getActualStatus()Lnet/minecraft/world/chunk/ChunkStatus;
intermediary method_60472
Lnet/minecraft/class_9761;method_60472()Lnet/minecraft/class_2806;
official p
Lary;p()Leaq;
-
getPos
- Mappings:
Namespace Name Mixin selector named getPos
Lnet/minecraft/world/chunk/AbstractChunkHolder;getPos()Lnet/minecraft/util/math/ChunkPos;
intermediary method_60473
Lnet/minecraft/class_9761;method_60473()Lnet/minecraft/class_1923;
official q
Lary;q()Ldgn;
-
getLevelType
- Mappings:
Namespace Name Mixin selector named getLevelType
Lnet/minecraft/world/chunk/AbstractChunkHolder;getLevelType()Lnet/minecraft/server/world/ChunkLevelType;
intermediary method_60474
Lnet/minecraft/class_9761;method_60474()Lnet/minecraft/class_3194;
official r
Lary;r()Larw;
-
getLevel
public abstract int getLevel()- Mappings:
Namespace Name Mixin selector named getLevel
Lnet/minecraft/world/chunk/AbstractChunkHolder;getLevel()I
intermediary method_14005
Lnet/minecraft/class_9761;method_14005()I
official i
Lary;i()I
-
getCompletedLevel
public abstract int getCompletedLevel()- Mappings:
Namespace Name Mixin selector named getCompletedLevel
Lnet/minecraft/world/chunk/AbstractChunkHolder;getCompletedLevel()I
intermediary method_17208
Lnet/minecraft/class_9761;method_17208()I
official j
Lary;j()I
-
enumerateFutures
public List<com.mojang.datafixers.util.Pair<ChunkStatus,CompletableFuture<OptionalChunk<Chunk>>>> enumerateFutures()- Mappings:
Namespace Name Mixin selector named enumerateFutures
Lnet/minecraft/world/chunk/AbstractChunkHolder;enumerateFutures()Ljava/util/List;
intermediary method_60475
Lnet/minecraft/class_9761;method_60475()Ljava/util/List;
official s
Lary;s()Ljava/util/List;
-
getLatestStatus
- Mappings:
Namespace Name Mixin selector named getLatestStatus
Lnet/minecraft/world/chunk/AbstractChunkHolder;getLatestStatus()Lnet/minecraft/world/chunk/ChunkStatus;
intermediary method_60476
Lnet/minecraft/class_9761;method_60476()Lnet/minecraft/class_2806;
official t
Lary;t()Leaq;
-