Skip to content

Dolphin 5.46.0 ​

class · pocketmine\entity\aquatic\Dolphin · source

Extends Mob

Bedrock values (entities/dolphin.json): 10 health, 0.9x0.6, underwater speed 0.15, attack 3 against whoever hurts it, breathes air (240 seconds of air) and swims up to breathe, swims along with nearby players in water (1.5x), dries out on land unless it rains on it (2 minutes, then 1 damage per second). Loot (loot_tables/entities/dolphin.json): 0-1 raw cod (+0-1 per Looting level, cooked when burning); XP 1-3.

Constants ​

TAG_MOISTNESS ​

php
public const TAG_MOISTNESS = "Moistness"

Methods ​

canBeLeashed() ​

php
public function canBeLeashed() : bool

canBreathe() ​

php
public function canBreathe() : bool

entityBaseTick() protected ​

php
protected function entityBaseTick(int $tickDiff = 1) : bool

getDrops() ​

php
public function getDrops() : array

getInitialSizeInfo() protected ​

php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfo

getMoistness() ​

php
public function getMoistness() : int

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getSwimSpeed() protected ​

php
protected function getSwimSpeed() : float

getXpDropAmount() ​

php
public function getXpDropAmount() : int

initEntity() protected ​

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

registerGoals() protected ​

php
protected function registerGoals() : void

saveNBT() ​

php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTag

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