GuardianAttackGoal 5.46.0
Extends Goal
The guardian's laser (vanilla behavior.guardian_attack, Java GuardianAttackGoal): the guardian stops, locks its beam on the target (TARGET_EID metadata, which makes the client draw the beam) and, if it keeps seeing it, hits it when the beam is fully charged: Guardian::getAttackDuration() ticks after a 10 tick warm-up (80 ticks for guardians, 60 for elder guardians).
Constants
WARMUP_TICKS
php
public const WARMUP_TICKS = 10Properties
$guardian
php
public \pocketmine\entity\monster\Guardian $guardianMethods
__construct()
php
public function __construct(\pocketmine\entity\monster\Guardian $guardian)canContinue()
php
public function canContinue() : boolcanStart()
php
public function canStart() : boolgetAttackTime()
php
public function getAttackTime() : intTicks since the beam locked on, minus the warm-up (negative while warming up).
getFlags()
php
public function getFlags() : intstart()
php
public function start() : voidstop()
php
public function stop() : voidtick()
php
public function tick() : void