Skip to content

Armadillo 5.46.0 ​

class · pocketmine\entity\animal\Armadillo · source

Extends Animal

Bedrock values (entities/armadillo.json): 12 health, 0.7x0.65, movement 0.14 (0 when rolled up), babies scale 0.6. Rolls up (actor property minecraft:armadillo_state) when hurt or when an undead mob or a sprinting player is within 7 blocks (Java rules), and unrolls a few seconds after the threat is gone; rolled up it takes (damage - 1) / 2 (Java). Brushing an adult drops a scute (brush loses 16 durability); adults also drop one every 5-10 minutes. Tempted (1.25x) and bred with spider eyes. No loot; XP 1-3.

Constants ​

MODIFIER_ROLLED_UP ​

php
public const MODIFIER_ROLLED_UP = 1000

Damage modifier key of the rolled up damage reduction.

STATE_ROLLED_UP ​

php
public const STATE_ROLLED_UP = "rolled_up"

STATE_UNROLLED ​

php
public const STATE_UNROLLED = "unrolled"

STATE_UNROLLING ​

php
public const STATE_UNROLLING = "rolled_up_unrolling"

TAG_SCUTE_TIME ​

php
public const TAG_SCUTE_TIME = "ScuteTime"

TAG_STATE ​

php
public const TAG_STATE = "ArmadilloState"

Methods ​

attack() ​

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

canFallInLove() protected ​

php
protected function canFallInLove(\pocketmine\player\Player $player) : bool

createBaby() protected ​

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

dropScute() ​

php
public function dropScute() : void

Drops a scute (brushing or the natural drop).

entityBaseTick() protected ​

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

getBabyScale() protected ​

php
protected function getBabyScale() : float

getInitialSizeInfo() protected ​

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

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getState() ​

php
public function getState() : string

initEntity() protected ​

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

isBreedingItem() ​

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

isRolledUp() ​

php
public function isRolledUp() : bool

isScaryEntity() ​

php
public static function isScaryEntity(\pocketmine\entity\Entity $entity) : bool

Undead mobs and sprinting players scare armadillos (Java Armadillo.isScaredBy()).

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

setState() ​

php
public function setState(string $state) : void

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