Illager 5.46.0
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\EntitySizeInfogetXpDropAmount()
php
public function getXpDropAmount() : intinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisAlly()
php
public static function isAlly(\pocketmine\entity\Living $entity) : boolReturns whether the entity is on the illagers' side (other illagers, vexes, ravagers).
isRaidVictim()
php
public function isRaidVictim(\pocketmine\entity\Living $entity) : boolpickSpawnEquipment() protected
php
protected function pickSpawnEquipment() : voidGives the illager its weapon when it spawns.
registerCommonGoals() protected
php
protected function registerCommonGoals() : voidregisterTargetGoals() protected
php
protected function registerTargetGoals() : voidsaveNBT()
php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void