PocketMine-MP 5.39.3 git-9a46a8bd745880ddf8eebaf28cda326bb97d2efa
Loading...
Searching...
No Matches
pocketmine\world\generator\executor\AsyncGeneratorExecutor Class Reference
+ Inheritance diagram for pocketmine\world\generator\executor\AsyncGeneratorExecutor:
+ Collaboration diagram for pocketmine\world\generator\executor\AsyncGeneratorExecutor:

Public Member Functions

 __construct (\Logger $logger, private readonly AsyncPool $workerPool, private readonly GeneratorExecutorSetupParameters $setupParameters, ?int $asyncContextId=null)
 
 populate (int $chunkX, int $chunkZ, ?Chunk $centerChunk, array $adjacentChunks, \Closure $onCompletion)
 
 shutdown ()
 

Detailed Description

Definition at line 31 of file AsyncGeneratorExecutor.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\generator\executor\AsyncGeneratorExecutor::__construct ( \Logger $logger,
private readonly AsyncPool $workerPool,
private readonly GeneratorExecutorSetupParameters $setupParameters,
?int $asyncContextId = null )

Definition at line 47 of file AsyncGeneratorExecutor.php.

Member Function Documentation

◆ populate()

pocketmine\world\generator\executor\AsyncGeneratorExecutor::populate ( int $chunkX,
int $chunkZ,
?Chunk $centerChunk,
array $adjacentChunks,
\Closure $onCompletion )
Parameters
Chunk[] | null[]$adjacentChunks@phpstan-param array<int, Chunk|null> $adjacentChunks @phpstan-param \Closure(Chunk $centerChunk, array<int, Chunk> $adjacentChunks) : void $onCompletion

Implements pocketmine\world\generator\executor\GeneratorExecutor.

Definition at line 82 of file AsyncGeneratorExecutor.php.

◆ shutdown()

pocketmine\world\generator\executor\AsyncGeneratorExecutor::shutdown ( )

The documentation for this class was generated from the following file: