Skip to content

FollowParentGoal 5.46.0 ​

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

Extends Goal

Babies follow the nearest adult of their kind (vanilla behavior.follow_parent).

Properties ​

$animal ​

php
public \pocketmine\entity\animal\Animal $animal

$speedMultiplier ​

php
public float $speedMultiplier

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\animal\Animal $animal, float $speedMultiplier = 1.1)

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.