Skip to content

FloatGoal 5.46.0 ​

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

Extends Goal

Keeps the mob afloat in water by swimming up (vanilla behavior.float).

Properties ​

$mob ​

php
public \pocketmine\entity\Mob $mob

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Mob $mob)

canStart() ​

php
public function canStart() : bool

getFlags() ​

php
public function getFlags() : int

isInterruptible() ​

php
public function isInterruptible() : bool

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.