PanicGoal 5.46.0
Extends Goal
Runs away at a higher speed after being hurt or while burning (vanilla behavior.panic).
Properties
$mob
php
public \pocketmine\entity\Mob $mob$onlyWhen
php
public ?\Closure $onlyWhen$speedMultiplier
php
public float $speedMultiplierMethods
__construct()
php
public function __construct(\pocketmine\entity\Mob $mob, float $speedMultiplier, ?\Closure $onlyWhen = null)canContinue()
php
public function canContinue() : boolcanStart()
php
public function canStart() : boolgetFlags()
php
public function getFlags() : intshouldPanic() protected
php
protected function shouldPanic() : boolstart()
php
public function start() : voidstop()
php
public function stop() : voidtick()
php
public function tick() : void