Tadpole 5.46.0
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 = 24000TAG_AGE
php
public const TAG_AGE = "Age"Methods
applyBucketData()
php
public function applyBucketData(\pocketmine\nbt\tag\CompoundTag $tag) : voidentityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolgetAge()
php
public function getAge() : intTicks lived so far (it becomes a frog at Tadpole::GROW_UP_TICKS).
getBucketItem() protected
php
protected function getBucketItem() : \pocketmine\item\ItemgetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetSwimSpeed() protected
php
protected function getSwimSpeed() : floatgrowUp()
php
public function growUp() : \pocketmine\entity\animal\FrogReplaces the tadpole by a frog of the local variant.
initEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisBaby()
php
public function isBaby() : boolonInteractWithItem() protected
php
protected function onInteractWithItem(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : boolregisterGoals() protected
php
protected function registerGoals() : voidsaveNBT()
php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsetAge()
php
public function setAge(int $age) : voidsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : voidwriteBucketData() protected
php
protected function writeBucketData(\pocketmine\nbt\tag\CompoundTag $tag) : void