Skip to content

InvestigateLocationGoal 5.46.0 ​

class · pocketmine\entity\ai\goal\InvestigateLocationGoal · source

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

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Mob $mob, float $speedMultiplier, \Closure $getLocation, \Closure $onDone)

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

tick() ​

php
public function tick() : void

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