Skip to content

AngerTargetGoal 5.46.0 ​

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

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 $range

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Mob $mob, \Closure $angerTarget, float $range = 48.0)

canContinue() ​

php
public function canContinue() : bool

canStart() ​

php
public function canStart() : bool

getFlags() ​

php
public function getFlags() : int

start() ​

php
public function start() : void

stop() ​

php
public function stop() : void

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