Skip to content

HostileMobs 5.46.0 ​

final class · pocketmine\entity\monster\HostileMobs · source

Registration of the mobs of phase 3 (hostile mobs of the Overworld, the Nether and the End, plus the strider, camel husk and sulfur cube): their save IDs in EntityFactory and their spawn egg factories in EntitySpawnRegistry. Kept in one place so that the shared registries only need one line each.

Natural spawning of these mobs is not implemented yet.

Methods ​

getMobs() ​

php
public static function getMobs() : array

Bedrock identifier => [class, legacy PocketMine save name, factory].

registerEntities() ​

php
public static function registerEntities(\pocketmine\entity\EntityFactory $factory) : void

registerSpawnFactories() ​

php
public static function registerSpawnFactories(\pocketmine\entity\EntitySpawnRegistry $registry) : void

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