MobSpawningWorldData 5.46.0
Extends WorldData
World data which stores the domobspawning gamerule. Kept out of WorldData so that world providers written by plugins against the original interface keep working; worlds whose data doesn't implement it always have natural mob spawning enabled (if enabled in pocketmine.yml).
Methods
isMobSpawningEnabled()
php
public function isMobSpawningEnabled() : boolReturns whether mobs spawn naturally (gamerule domobspawning).
setMobSpawningEnabled()
php
public function setMobSpawningEnabled(bool $enabled) : void