Skip to content

Cod 5.46.0 ​

class · pocketmine\entity\aquatic\Cod · source

Extends AbstractFish

Bedrock values (entities/fish.json): 3 health, 0.6x0.3, underwater speed 0.1, flees players within 6 blocks. Loot (loot_tables/entities/fish.json): 1 raw cod (cooked when burning), 25% bone.

Methods ​

getBucketItem() protected ​

php
protected function getBucketItem() : \pocketmine\item\Item

getFishDrops() protected ​

php
protected function getFishDrops() : array

getInitialSizeInfo() protected ​

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

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getSwimSpeed() protected ​

php
protected function getSwimSpeed() : float

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