Zoglin 5.46.0
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) : boolcanBeLeashed()
php
public function canBeLeashed() : boolcanBreathe()
php
public function canBreathe() : boolgetDrops()
php
public function getDrops() : arraygetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetPickedItem()
php
public function getPickedItem() : ?\pocketmine\item\ItemgetXpDropAmount()
php
public function getXpDropAmount() : intinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisBaby()
php
public function isBaby() : boolisFireProof()
php
public function isFireProof() : boolregisterGoals() protected
php
protected function registerGoals() : voidsaveNBT()
php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsetBaby()
php
public function setBaby(bool $baby) : voidsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void