HopGoal 5.46.0
Extends Goal
AI of hopping mobs (vanilla slime_attack, slime_random_direction, slime_keep_on_jumping): hop towards the attack target (or a luring point, e.g. a player holding the food of a sulfur cube), otherwise hop in a random direction changed every 2-5 seconds.
Properties
$control
php
public \pocketmine\entity\ai\hostile\HopControl $control$lure
php
public ?\Closure $lure$mob
php
public \pocketmine\entity\Mob $mobMethods
__construct()
php
public function __construct(\pocketmine\entity\Mob $mob, \pocketmine\entity\ai\hostile\HopControl $control, ?\Closure $lure = null)canContinue()
php
public function canContinue() : boolcanStart()
php
public function canStart() : boolgetFlags()
php
public function getFlags() : intstop()
php
public function stop() : voidtick()
php
public function tick() : void