Armadillo 5.46.0
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 = 1000Damage 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) : voidcanFallInLove() protected
php
protected function canFallInLove(\pocketmine\player\Player $player) : boolcreateBaby() protected
php
protected function createBaby(\pocketmine\entity\animal\Animal $partner, \pocketmine\entity\Location $location) : \pocketmine\entity\animal\AnimaldropScute()
php
public function dropScute() : voidDrops a scute (brushing or the natural drop).
entityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolgetBabyScale() protected
php
protected function getBabyScale() : floatgetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetState()
php
public function getState() : stringinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisBreedingItem()
php
public function isBreedingItem(\pocketmine\item\Item $item) : boolisRolledUp()
php
public function isRolledUp() : boolisScaryEntity()
php
public static function isScaryEntity(\pocketmine\entity\Entity $entity) : boolUndead mobs and sprinting players scare armadillos (Java Armadillo.isScaredBy()).
onInteractWithItem() 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\CompoundTagsetState()
php
public function setState(string $state) : void