Skip to content

Tadpole 5.46.0 ​

class · pocketmine\entity\aquatic\Tadpole · source

Extends Mob
Implements Ageable, BucketableMob

Bedrock values (entities/tadpole.json): 6 health, 0.8x0.6, underwater speed 0.1, panics at 2x, tempted by slime balls (1.25x), 8 seconds of air out of water. Grows into a frog after 20 minutes (feeding a slime ball takes 10% off); the frog variant follows the biome. Caught with a water bucket (the bucket keeps its age).

Constants ​

GROW_UP_TICKS ​

php
public const GROW_UP_TICKS = 24000

TAG_AGE ​

php
public const TAG_AGE = "Age"

Methods ​

applyBucketData() ​

php
public function applyBucketData(\pocketmine\nbt\tag\CompoundTag $tag) : void

entityBaseTick() protected ​

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

getAge() ​

php
public function getAge() : int

Ticks lived so far (it becomes a frog at Tadpole::GROW_UP_TICKS).

getBucketItem() protected ​

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

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

growUp() ​

php
public function growUp() : \pocketmine\entity\animal\Frog

Replaces the tadpole by a frog of the local variant.

initEntity() protected ​

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

isBaby() ​

php
public function isBaby() : bool

onInteractWithItem() protected ​

php
protected function onInteractWithItem(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : bool

registerGoals() protected ​

php
protected function registerGoals() : void

saveNBT() ​

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

setAge() ​

php
public function setAge(int $age) : void

syncNetworkData() protected ​

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

writeBucketData() protected ​

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

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