Pillager 5.46.0
Extends Illager
Bedrock values (pillager.json): 24 health, movement 0.35, crossbow: loads it (25 ticks), then shoots within 8 blocks. Loot: 0-2 arrows (+0-1 per Looting level) and its crossbow (8.5%).
Constants
ATTACK_RANGE
php
public const ATTACK_RANGE = 8.0Methods
getDrops()
php
public function getDrops() : arraygetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetPickedItem()
php
public function getPickedItem() : ?\pocketmine\item\IteminitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisCharging()
php
public function isCharging() : boolpickSpawnEquipment() protected
php
protected function pickSpawnEquipment() : voidregisterGoals() protected
php
protected function registerGoals() : voidsetCharging()
php
public function setCharging(bool $charging) : voidshootCrossbow()
php
public function shootCrossbow(\pocketmine\entity\Living $target, float $distance) : voidsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void