InvestigateLocationGoal 5.46.0
Extends Goal
Walks to a suspicious location (vanilla behavior.investigate_suspicious_location): the location comes from the callback (e.g. where the warden last heard a vibration) and is forgotten once reached or unreachable.
Properties
$getLocation
php
public \Closure $getLocation$mob
php
public \pocketmine\entity\Mob $mob$onDone
php
public \Closure $onDone$speedMultiplier
php
public float $speedMultiplierMethods
__construct()
php
public function __construct(\pocketmine\entity\Mob $mob, float $speedMultiplier, \Closure $getLocation, \Closure $onDone)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() : voidtick()
php
public function tick() : void