AngerTargetGoal 5.46.0
Extends Goal
Attacks whoever the mob is angry at (vanilla minecraft😠 zombified piglins, piglins, endermen, silverfish). The anger itself (who, for how long, broadcasting it to the group) is kept by the mob and read through $angerTarget.
Properties
$angerTarget
php
public \Closure $angerTarget$mob
php
public \pocketmine\entity\Mob $mob$range
php
public float $rangeMethods
__construct()
php
public function __construct(\pocketmine\entity\Mob $mob, \Closure $angerTarget, float $range = 48.0)canContinue()
php
public function canContinue() : boolcanStart()
php
public function canStart() : boolgetFlags()
php
public function getFlags() : intstart()
php
public function start() : voidstop()
php
public function stop() : void