Skip to content

AquaticMonster 5.46.0 ​

abstract class · pocketmine\entity\monster\AquaticMonster · source

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 $swim

Methods ​

breathesAir() ​

php
public function breathesAir() : bool

canBreathe() ​

php
public function canBreathe() : bool

destroyCycles() protected ​

php
protected function destroyCycles() : void

getSwimControl() ​

php
public function getSwimControl() : \pocketmine\entity\ai\hostile\FreeMoveControl

hasMovementUpdate() ​

php
public function hasMovementUpdate() : bool

initEntity() protected ​

php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : void

isInWaterBody() ​

php
public function isInWaterBody() : bool

Returns whether the mob is in water (feet or eyes).

onAirExpired() ​

php
public function onAirExpired() : void

syncNetworkData() protected ​

php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void

tryChangeMovement() protected ​

php
protected function tryChangeMovement() : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.