Skip to content

PiglinBrute 5.46.0 ​

class · pocketmine\entity\monster\PiglinBrute · source

Extends Monster
Implements Angerable

Bedrock values (piglin_brute.json): 50 health, movement 0.35, golden axe, attack 7. Always hostile to players within 12 blocks (gold armor doesn't help) and to wither skeletons; hurting it angers the piglins within 16 blocks. Turns into a zombified piglin after 15 seconds outside the Nether. Experience 20; loot: its axe (8.5%). Unlike piglins it never barters, picks up gold or hunts hoglins, and opening containers or mining gold doesn't anger it (it is hostile anyway); it joins the fights of the piglins around. Not implemented: going back to its bastion (go_home).

Constants ​

ANGER_TICKS ​

php
public const ANGER_TICKS = 600

ATTACK_DAMAGE ​

php
public const ATTACK_DAMAGE = 7.0

Methods ​

attack() ​

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

entityBaseTick() protected ​

php
protected function entityBaseTick(int $tickDiff = 1) : 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

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

zombify() protected ​

php
protected function zombify() : void

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