Skip to content

MountPathingGoal 5.46.0 ​

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

Extends Goal

A ridden mob walks towards the attack target of its rider (vanilla behavior.mount_pathing, "track_target"): the spider of a spider jockey, the chicken of a chicken jockey...

Properties ​

$mob ​

php
public \pocketmine\entity\Mob $mob

$speedMultiplier ​

php
public float $speedMultiplier

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Mob $mob, float $speedMultiplier = 1.25)

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.