FindMountGoal 5.46.0
Extends Goal
A mob looks for something to ride within a radius, walks to it and gets on (vanilla behavior.find_mount: baby zombie jockeys looking for a chicken). It gives up after a number of failed attempts.
Properties
$maxFailedAttempts
php
public int $maxFailedAttempts$mob
php
public \pocketmine\entity\Mob $mob$radius
php
public float $radiusMethods
__construct()
php
public function __construct(\pocketmine\entity\Mob $mob, float $radius = 16.0, int $maxFailedAttempts = 20, int $startDelay = 15)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