RangedAttackGoal 5.46.0
Extends Goal
Keeps the target at range, strafing around it, and shoots it at a fixed interval (vanilla behavior.ranged_attack with skeleton strafing). The shot itself is done by the callback.
Properties
$attackInterval
php
public int $attackInterval$attackRange
php
public float $attackRange$hardAttackInterval
php
public int $hardAttackInterval$mob
php
public \pocketmine\entity\Mob $mob$shoot
php
public \Closure $shoot$speedMultiplier
php
public float $speedMultiplierMethods
__construct()
php
public function __construct(\pocketmine\entity\Mob $mob, float $speedMultiplier, int $attackInterval, int $hardAttackInterval, float $attackRange, \Closure $shoot)canStart()
php
public function canStart() : boolgetFlags()
php
public function getFlags() : intstop()
php
public function stop() : voidtick()
php
public function tick() : void