Skip to content

MobSpawningWorldData 5.46.0 ​

interface · pocketmine\world\format\io\MobSpawningWorldData · source

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() : bool

Returns whether mobs spawn naturally (gamerule domobspawning).

setMobSpawningEnabled() ​

php
public function setMobSpawningEnabled(bool $enabled) : void

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