Skip to content

Zoglin 5.46.0 ​

class · pocketmine\entity\monster\Zoglin · source

Extends Monster
Implements Ageable, Undead

Bedrock values (zoglin.json): 40 health, 1.4x1.4, movement 0.25 (attacks at 1.15x), knockback resistance 0.6, fire immune, undead. Attacks every mob but zoglins and creepers within 16 blocks, for 3-8 damage (babies 0.5), tossing them up. Loot: 1-3 rotten flesh (+0-1 per Looting level). Experience 5.

Constants ​

TAG_IS_BABY ​

php
public const TAG_IS_BABY = "IsBaby"

Methods ​

attackMelee() ​

php
public function attackMelee(\pocketmine\entity\Living $target, float $baseDamage) : bool

canBeLeashed() ​

php
public function canBeLeashed() : bool

canBreathe() ​

php
public function canBreathe() : bool

getDrops() ​

php
public function getDrops() : array

getInitialSizeInfo() protected ​

php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfo

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getPickedItem() ​

php
public function getPickedItem() : ?\pocketmine\item\Item

getXpDropAmount() ​

php
public function getXpDropAmount() : int

initEntity() protected ​

php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : void

isBaby() ​

php
public function isBaby() : bool

isFireProof() ​

php
public function isFireProof() : bool

registerGoals() protected ​

php
protected function registerGoals() : void

saveNBT() ​

php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTag

setBaby() ​

php
public function setBaby(bool $baby) : void

syncNetworkData() protected ​

php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void

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