ZombifiedPiglin 5.46.0
Extends Zombie
Implements Angerable
Zombified piglin (minecraft:zombie_pigman). Bedrock values (zombie_pigman.json): 20 health, movement 0.23 (chases at 1.5x), attack 5, fire immune, golden sword (5% golden spear). Neutral: when hurt, it and every zombified piglin within 20 blocks get angry at the attacker for 25 seconds. Loot: 0-1 rotten flesh, 0-1 gold nugget (+0-1 each per Looting level), 2.5% (+1% per Looting level) gold ingot when killed by a player.
Constants
ANGER_RANGE
php
public const ANGER_RANGE = 20.0ANGER_TICKS
php
public const ANGER_TICKS = 500ATTACK_DAMAGE
php
public const ATTACK_DAMAGE = 5.0Methods
attack()
php
public function attack(\pocketmine\event\entity\EntityDamageEvent $source) : voidburnsInDaylight()
php
public function burnsInDaylight() : boolcanBreathe()
php
public function canBreathe() : boolentityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolgetDrops()
php
public function getDrops() : arraygetName()
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) : voidisFireProof()
php
public function isFireProof() : boolonAngerChange() protected
php
protected function onAngerChange(bool $angry) : voidregisterGoals() protected
php
protected function registerGoals() : voidsaveNBT()
php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void