TemptGoal 5.46.0
Extends Goal
Follows a player holding a food item the mob likes (vanilla behavior.tempt).
Properties
$isTemptItem
php
public \Closure $isTemptItem$mob
php
public \pocketmine\entity\Mob $mob$speedMultiplier
php
public float $speedMultiplierMethods
__construct()
php
public function __construct(\pocketmine\entity\Mob $mob, float $speedMultiplier, \Closure $isTemptItem)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