Skip to content

Evoker 5.46.0 ​

class · pocketmine\entity\monster\Evoker · source

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 = 8

VEX_CAP_RADIUS ​

php
public const VEX_CAP_RADIUS = 16

Methods ​

canSummonVexes() ​

php
public function canSummonVexes() : bool

Returns whether there is room for more vexes (vanilla summon_cap: 8 within 16 blocks).

castWololo() ​

php
public function castWololo(?\pocketmine\entity\animal\Sheep $sheep) : bool

The 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) : bool

getCastingSpell() ​

php
public function getCastingSpell() : int

getDrops() ​

php
public function getDrops() : array

getInitialSizeInfo() protected ​

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

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getPendingFangCount() ​

php
public function getPendingFangCount() : int

getPickedItem() ​

php
public function getPickedItem() : ?\pocketmine\item\Item

getXpDropAmount() ​

php
public function getXpDropAmount() : int

initEntity() protected ​

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

isCasting() ​

php
public function isCasting() : bool

registerGoals() protected ​

php
protected function registerGoals() : void

startCasting() ​

php
public function startCasting(int $spell) : void

stopCasting() ​

php
public function stopCasting() : void

summonFangs() ​

php
public function summonFangs(\pocketmine\entity\Living $target) : void

Casts 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() : 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.