pocketmine\level\generator\GenerationTask::__construct PHP Method

__construct() public method

public __construct ( Level $level, pocketmine\level\format\FullChunk $chunk )
$level pocketmine\level\Level
$chunk pocketmine\level\format\FullChunk
    public function __construct(Level $level, FullChunk $chunk)
    {
        $this->state = true;
        $this->levelId = $level->getId();
        $this->chunk = $chunk->toFastBinary();
        $this->chunkClass = get_class($chunk);
    }