Path 5.46.0
final class · pocketmine\entity\ai\navigation\Path · source
A list of block positions (the block the mob's feet should be in) from the start to the end of a path.
Methods
__construct()
php
public function __construct(array $nodes, bool $reachesTarget, int $targetX, int $targetY, int $targetZ)advance()
php
public function advance() : voidgetCurrent()
php
public function getCurrent() : ?arraygetEnd()
php
public function getEnd() : ?arraygetIndex()
php
public function getIndex() : intgetLength()
php
public function getLength() : intgetNode()
php
public function getNode(int $index) : ?arraygetNodes()
php
public function getNodes() : arraygetTargetX()
php
public function getTargetX() : intgetTargetY()
php
public function getTargetY() : intgetTargetZ()
php
public function getTargetZ() : intisDone()
php
public function isDone() : boolreachesTarget()
php
public function reachesTarget() : boolWhether the last node is the target (false: the path only gets as close as the search could).
setIndex()
php
public function setIndex(int $index) : void