Dolphin 5.46.0
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() : boolcanBreathe()
php
public function canBreathe() : boolentityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolgetDrops()
php
public function getDrops() : arraygetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetMoistness()
php
public function getMoistness() : intgetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetSwimSpeed() protected
php
protected function getSwimSpeed() : floatgetXpDropAmount()
php
public function getXpDropAmount() : intinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidregisterGoals() protected
php
protected function registerGoals() : voidsaveNBT()
php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTag