PhantomAttackGoal 5.46.0
Extends Goal
Phantom flight (vanilla behavior.circle_around_anchor and behavior.swoop_attack, Java Phantom attack strategy): phantoms circle around an anchor point (20-40 blocks above their target, or above where they spawned) and every 8-11 seconds swoop down at the target, bite it once and climb back. A cat or ocelot within 16 blocks of the phantom (behavior.avoid_mob_type) stops it from swooping: checked when a swoop would start and every second of a swoop.
Constants
CIRCLE_SPEED
php
public const CIRCLE_SPEED = 0.35SWOOP_SPEED
php
public const SWOOP_SPEED = 0.6Properties
$phantom
php
public \pocketmine\entity\monster\Phantom $phantomMethods
__construct()
php
public function __construct(\pocketmine\entity\monster\Phantom $phantom)canContinue()
php
public function canContinue() : boolcanStart()
php
public function canStart() : boolgetFlags()
php
public function getFlags() : intisSwooping()
php
public function isSwooping() : boolstart()
php
public function start() : voidtick()
php
public function tick() : void