Skip to content

VanillaStructureSpawnProvider 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\VanillaStructureSpawnProvider · source

Implements StructureSpawnProvider

Structure spawn areas of vanilla worlds for the natural mob spawner: witches in swamp huts and pillagers around pillager outposts (Bedrock's hard-coded spawn spots).

Runs on the main thread, so it does not generate structure starts: it uses the structure placement (cheap) and the biome of the already generated chunk at the structure's generation point. Swamp hut boxes are exact; outpost areas are approximated by a 48 x 48 square around the start chunk.

Methods ​

getSpawnAreas() ​

php
public function getSpawnAreas(\pocketmine\world\World $world, int $x, int $z) : array

register() ​

php
public static function register() : void

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