Evoker 5.46.0
Extends Illager
Bedrock values (evocation_illager.json): 24 health, movement 0.5, keeps 8 blocks away from players, casts fangs and summons vexes (see EvokerCastGoal). Experience 10. Loot: 0-1 emerald (+0-1 per Looting level) and a totem of undying. Without a target it casts the "wololo" spell on blue sheep within 16 blocks, turning them red (see EvokerWololoGoal).
Constants
MAX_VEXES
php
public const MAX_VEXES = 8VEX_CAP_RADIUS
php
public const VEX_CAP_RADIUS = 16Methods
canSummonVexes()
php
public function canSummonVexes() : boolReturns whether there is room for more vexes (vanilla summon_cap: 8 within 16 blocks).
castWololo()
php
public function castWololo(?\pocketmine\entity\animal\Sheep $sheep) : boolThe wololo spell takes effect: the sheep turns red if it is still alive, blue and within range.
entityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolgetCastingSpell()
php
public function getCastingSpell() : intgetDrops()
php
public function getDrops() : arraygetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetPendingFangCount()
php
public function getPendingFangCount() : intgetPickedItem()
php
public function getPickedItem() : ?\pocketmine\item\ItemgetXpDropAmount()
php
public function getXpDropAmount() : intinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisCasting()
php
public function isCasting() : boolregisterGoals() protected
php
protected function registerGoals() : voidstartCasting()
php
public function startCasting(int $spell) : voidstopCasting()
php
public function stopCasting() : voidsummonFangs()
php
public function summonFangs(\pocketmine\entity\Living $target) : voidCasts the fangs at the target: a double circle around the evoker when the target is close, otherwise a line of 16 fangs towards it, one per tick.
summonVexes()
php
public function summonVexes() : voidsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void