Skip to content

LocateVanillaBiomeTask 5.46.0 ​

final class · pocketmine\world\locate\LocateVanillaBiomeTask · source

Extends AsyncTask

Searches the closest biome of a vanilla-generated world on an async worker, sampling the climate noise directly (no chunk is generated). The result is the matching block position, or null if none within the radius.

Methods ​

__construct() ​

php
public function __construct(string $dataDir, int $seed, string $dimension, array $biomeNames, int $originX, int $originY, int $originZ, int $radius, \Closure $onCompletion, int $timeoutSeconds = 0)

onCompletion() ​

php
public function onCompletion() : void

onError() ​

php
public function onError() : void

onRun() ​

php
public function onRun() : void
php
public static function search(\pocketmine\world\generator\vanilla\biome\VanillaBiomeSource $source, array $biomeNames, int $originX, int $originY, int $originZ, int $radius, ?int $deadlineNs = null) : ?\pocketmine\math\Vector3

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.