Package net.minecraft.world.chunk
Interface ChunkStatus.GenerationTask
- All Known Subinterfaces:
ChunkStatus.SimpleGenerationTask
- Enclosing class:
- ChunkStatus
private static interface ChunkStatus.GenerationTask
A task called when a chunk needs to be generated.
- Mappings:
Namespace Name official cmq$b
intermediary net/minecraft/class_2806$class_2807
named net/minecraft/world/chunk/ChunkStatus$GenerationTask
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.Unloaded>> doWork
(ChunkStatus targetStatus, Executor executor, ServerWorld world, ChunkGenerator chunkGenerator, StructureManager structureManager, ServerLightingProvider lightingProvider, Function<Chunk, CompletableFuture<com.mojang.datafixers.util.Either<Chunk, ChunkHolder.Unloaded>>> convertCallback, List<Chunk> list, Chunk chunk)
-
Method Details
-
doWork
CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> doWork(ChunkStatus targetStatus, Executor executor, ServerWorld world, ChunkGenerator chunkGenerator, StructureManager structureManager, ServerLightingProvider lightingProvider, Function<Chunk, CompletableFuture<com.mojang.datafixers.util.Either<Chunk, ChunkHolder.Unloaded>>> convertCallback, List<Chunk> list, Chunk chunk) - Parameters:
targetStatus
- the status the chunk will be set to after the task is completedconvertCallback
- will be invoked by statuses which have some special convert logic (e.g. the FULL status to convert the chunk to a full chunk)- Mappings:
Namespace Name Mixin selector official doWork
Lcmq$b;doWork(Lcmq;Ljava/util/concurrent/Executor;Labr;Lcmo;Ldcq;Labu;Ljava/util/function/Function;Ljava/util/List;Lcmm;)Ljava/util/concurrent/CompletableFuture;
intermediary doWork
Lnet/minecraft/class_2806$class_2807;doWork(Lnet/minecraft/class_2806;Ljava/util/concurrent/Executor;Lnet/minecraft/class_3218;Lnet/minecraft/class_2794;Lnet/minecraft/class_3485;Lnet/minecraft/class_3227;Ljava/util/function/Function;Ljava/util/List;Lnet/minecraft/class_2791;)Ljava/util/concurrent/CompletableFuture;
named doWork
Lnet/minecraft/world/chunk/ChunkStatus$GenerationTask;doWork(Lnet/minecraft/world/chunk/ChunkStatus;Ljava/util/concurrent/Executor;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/structure/StructureManager;Lnet/minecraft/server/world/ServerLightingProvider;Ljava/util/function/Function;Ljava/util/List;Lnet/minecraft/world/chunk/Chunk;)Ljava/util/concurrent/CompletableFuture;
-