AquaticMonster 5.46.0
Extends Monster
A hostile mob that lives in water (guardians, zombie nautilus): swims freely in three dimensions with a FreeMoveControl while in water, falls and flops around out of water, and suffocates when out of water for too long (unless AquaticMonster::breathesAir()).
Properties
$swim protected
php
protected \pocketmine\entity\ai\hostile\FreeMoveControl $swimMethods
breathesAir()
php
public function breathesAir() : boolcanBreathe()
php
public function canBreathe() : booldestroyCycles() protected
php
protected function destroyCycles() : voidgetSwimControl()
php
public function getSwimControl() : \pocketmine\entity\ai\hostile\FreeMoveControlhasMovementUpdate()
php
public function hasMovementUpdate() : boolinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisInWaterBody()
php
public function isInWaterBody() : boolReturns whether the mob is in water (feet or eyes).
onAirExpired()
php
public function onAirExpired() : voidsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : voidtryChangeMovement() protected
php
protected function tryChangeMovement() : void