Axolotl 5.46.0
Extends Animal
Implements BucketableMob
Bedrock values (entities/axolotl.json): 14 health, 0.75x0.42, walks at 0.1 and swims at 0.2 (amphibious), attacks (2 damage) fish, squids and tadpoles that are in water, then rests for 2 minutes; bred and tempted with a bucket of tropical fish (gives back a water bucket). Variants (VARIANT): 0 lucy, 1 cyan, 2 gold, 3 wild, 4 blue (only bred, 1/1200). When hurt in water it may play dead for 10 seconds and regenerate. Dries out after 5 minutes on land, unless it rains on it. Caught with a water bucket.
Constants
TAG_MOISTNESS
php
public const TAG_MOISTNESS = "Moistness"TAG_VARIANT
php
public const TAG_VARIANT = "Variant"VARIANT_BLUE
php
public const VARIANT_BLUE = 4VARIANT_CYAN
php
public const VARIANT_CYAN = 1VARIANT_GOLD
php
public const VARIANT_GOLD = 2VARIANT_LUCY
php
public const VARIANT_LUCY = 0VARIANT_WILD
php
public const VARIANT_WILD = 3Methods
applyBucketData()
php
public function applyBucketData(\pocketmine\nbt\tag\CompoundTag $tag) : voidattack()
php
public function attack(\pocketmine\event\entity\EntityDamageEvent $source) : voidcanBreathe()
php
public function canBreathe() : boolconsumeFood() protected
php
protected function consumeFood(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : voidcreateBaby() protected
php
protected function createBaby(\pocketmine\entity\animal\Animal $partner, \pocketmine\entity\Location $location) : \pocketmine\entity\animal\AnimalcreateMoveControl() protected
php
protected function createMoveControl() : \pocketmine\entity\ai\control\MoveControlentityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolfindWanderPos()
php
public function findWanderPos(int $horizontal, int $vertical, ?\pocketmine\math\Vector3 $awayFrom = null) : ?\pocketmine\math\Vector3getBucketItem() 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() : stringgetVariant()
php
public function getVariant() : intinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisBreedingItem()
php
public function isBreedingItem(\pocketmine\item\Item $item) : boolisPlayingDead()
php
public function isPlayingDead() : boolisPrey()
php
public static function isPrey(\pocketmine\entity\Living $entity) : 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\CompoundTagsetAttackTarget()
php
public function setAttackTarget(?\pocketmine\entity\Living $target) : voidsetVariant()
php
public function setVariant(int $variant) : voidsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : voidtickAi() protected
php
protected function tickAi(int $currentTick) : voidwriteBucketData() protected
php
protected function writeBucketData(\pocketmine\nbt\tag\CompoundTag $tag) : void