Package net.minecraft.server.level
Class GenerationChunkHolder
java.lang.Object
net.minecraft.server.level.GenerationChunkHolder
- Direct Known Subclasses:
ChunkHolder
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final List
<ChunkStatus> private final AtomicReferenceArray
<CompletableFuture<ChunkResult<ChunkAccess>>> private final AtomicInteger
private ChunkStatus
private static final ChunkResult
<ChunkAccess> protected final ChunkPos
private final AtomicReference
<ChunkStatus> private final AtomicReference
<ChunkGenerationTask> static final ChunkResult
<ChunkAccess> static final CompletableFuture
<ChunkResult<ChunkAccess>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
acquireStatusBump
(ChunkStatus p_347706_) (package private) CompletableFuture
<ChunkResult<ChunkAccess>> applyStep
(ChunkStep p_347491_, GeneratingChunkMap p_347490_, StaticCache2D<GenerationChunkHolder> p_347657_) private void
completeFuture
(ChunkStatus p_347482_, ChunkAccess p_347557_) void
private void
failAndClearPendingFuture
(int p_347608_, CompletableFuture<ChunkResult<ChunkAccess>> p_347723_) private void
failAndClearPendingFuturesBetween
(ChunkStatus p_347514_, ChunkStatus p_347559_) private ChunkStatus
findHighestStatusWithPendingFuture
(ChunkStatus p_347692_) List
<com.mojang.datafixers.util.Pair<ChunkStatus, CompletableFuture<ChunkResult<ChunkAccess>>>> getChunkIfPresent
(ChunkStatus p_347694_) getChunkIfPresentUnchecked
(ChunkStatus p_347539_) int
private CompletableFuture
<ChunkResult<ChunkAccess>> getOrCreateFuture
(ChunkStatus p_347537_) getPos()
abstract int
abstract int
void
private boolean
isStatusDisallowed
(ChunkStatus p_347619_) (package private) void
removeTask
(ChunkGenerationTask p_347509_) void
replaceProtoChunk
(ImposterProtoChunk p_347538_) private void
rescheduleChunkTask
(ChunkMap p_347690_, ChunkStatus p_347571_) scheduleChunkGenerationTask
(ChunkStatus p_347666_, ChunkMap p_347681_) protected void
updateHighestAllowedStatus
(ChunkMap p_347458_)
-
Field Details
-
CHUNK_STATUSES
-
NOT_DONE_YET
-
UNLOADED_CHUNK
-
UNLOADED_CHUNK_FUTURE
-
pos
-
highestAllowedStatus
-
startedWork
-
futures
-
task
-
generationRefCount
-
currentlyLoading
-
-
Constructor Details
-
GenerationChunkHolder
-
-
Method Details
-
scheduleChunkGenerationTask
public CompletableFuture<ChunkResult<ChunkAccess>> scheduleChunkGenerationTask(ChunkStatus p_347666_, ChunkMap p_347681_) -
applyStep
CompletableFuture<ChunkResult<ChunkAccess>> applyStep(ChunkStep p_347491_, GeneratingChunkMap p_347490_, StaticCache2D<GenerationChunkHolder> p_347657_) -
updateHighestAllowedStatus
-
replaceProtoChunk
-
removeTask
-
rescheduleChunkTask
-
getOrCreateFuture
-
failAndClearPendingFuturesBetween
private void failAndClearPendingFuturesBetween(@Nullable ChunkStatus p_347514_, ChunkStatus p_347559_) -
failAndClearPendingFuture
private void failAndClearPendingFuture(int p_347608_, CompletableFuture<ChunkResult<ChunkAccess>> p_347723_) -
completeFuture
-
findHighestStatusWithPendingFuture
-
acquireStatusBump
-
isStatusDisallowed
-
increaseGenerationRefCount
public void increaseGenerationRefCount() -
decreaseGenerationRefCount
public void decreaseGenerationRefCount() -
getGenerationRefCount
public int getGenerationRefCount() -
getChunkIfPresentUnchecked
-
getChunkIfPresent
-
getLatestChunk
-
getPersistedStatus
-
getPos
-
getFullStatus
-
getTicketLevel
public abstract int getTicketLevel() -
getQueueLevel
public abstract int getQueueLevel() -
getAllFutures
public List<com.mojang.datafixers.util.Pair<ChunkStatus,CompletableFuture<ChunkResult<ChunkAccess>>>> getAllFutures() -
getLatestStatus
-