static interface ChunkStatus.GenerationTask
Modifier and Type | Method and Description |
---|---|
CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> |
doWork(ChunkStatus targetStatus,
ServerWorld world,
ChunkGenerator generator,
StructureManager structureManager,
ServerLightingProvider lightingProvider,
Function<Chunk,CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>>> function,
List<Chunk> surroundingChunks,
Chunk chunk) |
CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> doWork(ChunkStatus targetStatus, ServerWorld world, ChunkGenerator generator, StructureManager structureManager, ServerLightingProvider lightingProvider, Function<Chunk,CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>>> function, List<Chunk> surroundingChunks, Chunk chunk)
targetStatus
- the status the chunk will be set to after the task is completedchunk
- the primary chunk this task will be applied to