Skip to content

ZombifiedPiglin 5.46.0 ​

class · pocketmine\entity\monster\ZombifiedPiglin · source

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.0

ANGER_TICKS ​

php
public const ANGER_TICKS = 500

ATTACK_DAMAGE ​

php
public const ATTACK_DAMAGE = 5.0

Methods ​

attack() ​

php
public function attack(\pocketmine\event\entity\EntityDamageEvent $source) : void

burnsInDaylight() ​

php
public function burnsInDaylight() : bool

canBreathe() ​

php
public function canBreathe() : bool

entityBaseTick() protected ​

php
protected function entityBaseTick(int $tickDiff = 1) : bool

getDrops() ​

php
public function getDrops() : array

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

isFireProof() ​

php
public function isFireProof() : bool

onAngerChange() protected ​

php
protected function onAngerChange(bool $angry) : void

registerGoals() protected ​

php
protected function registerGoals() : void

saveNBT() ​

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

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.