Skip to content

BreedGoal 5.46.0 ​

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

Extends Goal

Walks to another animal of the same kind in love and makes a baby with it (vanilla behavior.breed).

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.0)

canContinue() ​

php
public function canContinue() : bool

canStart() ​

php
public function canStart() : bool

getFlags() ​

php
public function getFlags() : int

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.