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_344029_, ChunkStatus p_344351_, ChunkPos p_344140_, StaticCache2D<GenerationChunkHolder> p_343399_) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
static ChunkGenerationTask
create
(GeneratingChunkMap p_344659_, ChunkStatus p_344444_, ChunkPos p_342415_) private int
getRadiusForLayer
(ChunkStatus p_343532_, boolean p_343456_) void
private void
private boolean
scheduleChunkInLayer
(ChunkStatus p_342275_, boolean p_344389_, GenerationChunkHolder p_343540_) private void
scheduleLayer
(ChunkStatus p_342139_, boolean p_342359_) 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_344029_, ChunkStatus p_344351_, ChunkPos p_344140_, StaticCache2D<GenerationChunkHolder> p_343399_)
-
-
Method Details
-
create
public static ChunkGenerationTask create(GeneratingChunkMap p_344659_, ChunkStatus p_344444_, ChunkPos p_342415_) -
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_342275_, boolean p_344389_, GenerationChunkHolder p_343540_) -
waitForScheduledLayer
-