Skip to content

Axolotl 5.46.0 ​

class · pocketmine\entity\animal\Axolotl · source

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 = 4

VARIANT_CYAN ​

php
public const VARIANT_CYAN = 1

VARIANT_GOLD ​

php
public const VARIANT_GOLD = 2

VARIANT_LUCY ​

php
public const VARIANT_LUCY = 0

VARIANT_WILD ​

php
public const VARIANT_WILD = 3

Methods ​

applyBucketData() ​

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

attack() ​

php
public function attack(\pocketmine\event\entity\EntityDamageEvent $source) : void

canBreathe() ​

php
public function canBreathe() : bool

consumeFood() protected ​

php
protected function consumeFood(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : void

createBaby() protected ​

php
protected function createBaby(\pocketmine\entity\animal\Animal $partner, \pocketmine\entity\Location $location) : \pocketmine\entity\animal\Animal

createMoveControl() protected ​

php
protected function createMoveControl() : \pocketmine\entity\ai\control\MoveControl

entityBaseTick() protected ​

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

findWanderPos() ​

php
public function findWanderPos(int $horizontal, int $vertical, ?\pocketmine\math\Vector3 $awayFrom = null) : ?\pocketmine\math\Vector3

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

getVariant() ​

php
public function getVariant() : int

initEntity() protected ​

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

isBreedingItem() ​

php
public function isBreedingItem(\pocketmine\item\Item $item) : bool

isPlayingDead() ​

php
public function isPlayingDead() : bool

isPrey() ​

php
public static function isPrey(\pocketmine\entity\Living $entity) : 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

setAttackTarget() ​

php
public function setAttackTarget(?\pocketmine\entity\Living $target) : void

setVariant() ​

php
public function setVariant(int $variant) : void

syncNetworkData() protected ​

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

tickAi() protected ​

php
protected function tickAi(int $currentTick) : 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.