Skip to content

Illager 5.46.0 ​

abstract class · pocketmine\entity\monster\Illager · source

Extends Monster
Implements Raider

Illagers (pillager, vindicator, evoker): 0.6x1.9, hold their weapon, don't fight each other (hurt_by_target ignores the "illager" family) and target players, adult villagers, wandering traders and iron and snow golems within 16 blocks.

Illagers are raiders (Raider): they form patrols led by a captain wearing the ominous banner (see \pocketmine\world\mobs\PatrolSpawner) and attack villages in raids (see \pocketmine\world\raid\Raid).

Methods ​

getInitialSizeInfo() protected ​

php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfo

getXpDropAmount() ​

php
public function getXpDropAmount() : int

initEntity() protected ​

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

isAlly() ​

php
public static function isAlly(\pocketmine\entity\Living $entity) : bool

Returns whether the entity is on the illagers' side (other illagers, vexes, ravagers).

isRaidVictim() ​

php
public function isRaidVictim(\pocketmine\entity\Living $entity) : bool

pickSpawnEquipment() protected ​

php
protected function pickSpawnEquipment() : void

Gives the illager its weapon when it spawns.

registerCommonGoals() protected ​

php
protected function registerCommonGoals() : void

registerTargetGoals() protected ​

php
protected function registerTargetGoals() : 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.