Skip to content

EvokerCastGoal 5.46.0 ​

class · pocketmine\entity\ai\hostile\goal\EvokerCastGoal · source

Extends Goal

The evoker's spells (vanilla behavior.summon_entity of evocation_illager.json):

  • fangs: 2 seconds of casting, fangs after 1 second (a double circle around the evoker when the target is within 3 blocks, otherwise a line of 16 towards the target); 5 seconds cooldown;
  • vexes: 5 seconds of casting, then 3 vexes (at most 8 within 16 blocks); 17 seconds cooldown.

Constants ​

FANGS_CAST_TICKS ​

php
public const FANGS_CAST_TICKS = 40

FANGS_COOLDOWN_TICKS ​

php
public const FANGS_COOLDOWN_TICKS = 100

FANGS_DELAY_TICKS ​

php
public const FANGS_DELAY_TICKS = 20

SPELL_FANGS ​

php
public const SPELL_FANGS = 0

SPELL_VEX ​

php
public const SPELL_VEX = 1

VEX_CAST_TICKS ​

php
public const VEX_CAST_TICKS = 100

VEX_COOLDOWN_TICKS ​

php
public const VEX_COOLDOWN_TICKS = 340

VEX_DELAY_TICKS ​

php
public const VEX_DELAY_TICKS = 100

Properties ​

$evoker ​

php
public \pocketmine\entity\monster\Evoker $evoker

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\monster\Evoker $evoker)

canContinue() ​

php
public function canContinue() : bool

canStart() ​

php
public function canStart() : bool

getFlags() ​

php
public function getFlags() : int

getSpell() ​

php
public function getSpell() : int

isInterruptible() ​

php
public function isInterruptible() : bool

start() ​

php
public function start() : void

stop() ​

php
public function stop() : void

tick() ​

php
public function tick() : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.