Skip to content

Pillager 5.46.0 ​

class · pocketmine\entity\monster\Pillager · source

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

Methods ​

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

initEntity() protected ​

php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : void

isCharging() ​

php
public function isCharging() : bool

pickSpawnEquipment() protected ​

php
protected function pickSpawnEquipment() : void

registerGoals() protected ​

php
protected function registerGoals() : void

setCharging() ​

php
public function setCharging(bool $charging) : void

shootCrossbow() ​

php
public function shootCrossbow(\pocketmine\entity\Living $target, float $distance) : void

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.