FloatGoal 5.46.0
Extends Goal
Keeps the mob afloat in water by swimming up (vanilla behavior.float).
Properties
$mob
php
public \pocketmine\entity\Mob $mobMethods
__construct()
php
public function __construct(\pocketmine\entity\Mob $mob)canStart()
php
public function canStart() : boolgetFlags()
php
public function getFlags() : intisInterruptible()
php
public function isInterruptible() : booltick()
php
public function tick() : void