Package net.minecraft.server.level
Class ChunkGenerationTask
java.lang.Object
net.minecraft.server.level.ChunkGenerationTask
-
Field Summary
Modifier and TypeFieldDescriptionprivate final StaticCache2D
<GenerationChunkHolder> private final GeneratingChunkMap
private boolean
private boolean
private final ChunkPos
private final List
<CompletableFuture<ChunkResult<ChunkAccess>>> private ChunkStatus
final ChunkStatus
-
Constructor Summary
ModifierConstructorDescriptionprivate
ChunkGenerationTask
(GeneratingChunkMap p_347493_, ChunkStatus p_347718_, ChunkPos p_347615_, StaticCache2D<GenerationChunkHolder> p_347529_) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
static ChunkGenerationTask
create
(GeneratingChunkMap p_347575_, ChunkStatus p_347556_, ChunkPos p_347630_) private int
getRadiusForLayer
(ChunkStatus p_347511_, boolean p_347717_) void
private void
private boolean
scheduleChunkInLayer
(ChunkStatus p_347483_, boolean p_347471_, GenerationChunkHolder p_347684_) private void
scheduleLayer
(ChunkStatus p_347611_, boolean p_347592_) private void
private CompletableFuture
<?>
-
Field Details
-
chunkMap
-
pos
-
scheduledStatus
-
targetStatus
-
markedForCancellation
private volatile boolean markedForCancellation -
scheduledLayer
-
cache
-
needsGeneration
private boolean needsGeneration
-
-
Constructor Details
-
ChunkGenerationTask
private ChunkGenerationTask(GeneratingChunkMap p_347493_, ChunkStatus p_347718_, ChunkPos p_347615_, StaticCache2D<GenerationChunkHolder> p_347529_)
-
-
Method Details
-
create
public static ChunkGenerationTask create(GeneratingChunkMap p_347575_, ChunkStatus p_347556_, ChunkPos p_347630_) -
runUntilWait
-
scheduleNextLayer
private void scheduleNextLayer() -
markForCancellation
public void markForCancellation() -
releaseClaim
private void releaseClaim() -
canLoadWithoutGeneration
private boolean canLoadWithoutGeneration() -
getCenter
-
scheduleLayer
-
getRadiusForLayer
-
scheduleChunkInLayer
private boolean scheduleChunkInLayer(ChunkStatus p_347483_, boolean p_347471_, GenerationChunkHolder p_347684_) -
waitForScheduledLayer
-