PiglinBrute 5.46.0
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 = 600ATTACK_DAMAGE
php
public const ATTACK_DAMAGE = 7.0Methods
attack()
php
public function attack(\pocketmine\event\entity\EntityDamageEvent $source) : voidentityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : 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) : 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) : voidzombify() protected
php
protected function zombify() : void