Monster 5.46.0
Extends Mob
A hostile mob. Removed in peaceful difficulty; when not persistent (naturally spawned and not named) it despawns far from players like other mobs (see \pocketmine\world\mobs\MobDespawner).
Constants
DESPAWN_INSTANT_DISTANCE
php
public const DESPAWN_INSTANT_DISTANCE = 128DESPAWN_RANDOM_DISTANCE
php
public const DESPAWN_RANDOM_DISTANCE = 32Methods
burnsInDaylight()
php
public function burnsInDaylight() : boolWhether the mob catches fire in sunlight (zombies, skeletons).
entityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolgetXpDropAmount()
php
public function getXpDropAmount() : intisInDaylight()
php
public function isInDaylight() : boolReturns whether the mob is exposed to the sun (daytime, sky directly above its head, not in water or rain).
