LayEggGoal 5.46.0
Extends Goal
A pregnant animal walks to a suitable block and lays its eggs there (vanilla behavior.lay_egg: frogs lay frogspawn on water, turtles lay eggs on sand). The callbacks decide where and what.
Properties
$findTarget
php
public \Closure $findTarget$isPregnant
php
public \Closure $isPregnant$lay
php
public \Closure $lay$mob
php
public \pocketmine\entity\Mob $mob$reach
php
public float $reach$speedMultiplier
php
public float $speedMultiplierMethods
__construct()
php
public function __construct(\pocketmine\entity\Mob $mob, \Closure $isPregnant, \Closure $findTarget, \Closure $lay, float $speedMultiplier = 1.0, float $reach = 1.7)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