VanillaStructureSpawnProvider 5.46.0
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) : arrayregister()
php
public static function register() : void