Llama 5.46.0
Extends AbstractHorse
Bedrock values (entities/llama.json): 15-30 health, movement 0.25, 0.9x1.87, follow range 40. Spits (1 damage, every 2 seconds) at whoever hurts it and at untamed wolves within 10 blocks; wolves run away from llamas. Tempted and bred (tamed) with hay bales; wheat and hay heal it and make babies grow. Coat VARIANT 0-3 (creamy, white, brown, gray); strength 1-5 (STRENGTH, Java odds). A tamed adult wears a wool carpet (decor, in the saddle slot of its inventory, shown in the body slot) and takes a chest of 3 slots per strength (vanilla additional_slots_per_strength, see AbstractHorse). Caravans (leash following) are not implemented: there are no leads yet. Loot (loot_tables/entities/llama.json): 0-2 leather (+0-1 per Looting level); XP 1-3.
Constants
TAG_STRENGTH
public const TAG_STRENGTH = "Strength"TAG_VARIANT
public const TAG_VARIANT = "Variant"Methods
acceptsInEquipSlot() protected
protected function acceptsInEquipSlot(\pocketmine\item\Item $item) : boolbreedsWith() protected
protected function breedsWith(\pocketmine\entity\animal\Animal $other) : boolcanBeRiddenBy()
public function canBeRiddenBy(\pocketmine\entity\Entity $entity) : boolcanHaveChest()
public function canHaveChest() : boolcanWearSaddle()
public function canWearSaddle() : boolcreateBaby() protected
protected function createBaby(\pocketmine\entity\animal\Animal $partner, \pocketmine\entity\Location $location) : \pocketmine\entity\animal\AnimalgetBodyItem()
public function getBodyItem() : \pocketmine\item\ItemgetCarpet()
public function getCarpet() : \pocketmine\item\ItemReturns the carpet worn (air if none).
getChestSize()
public function getChestSize() : intgetCoat()
public function getCoat() : intgetContainerSlotsPerStrength() protected
protected function getContainerSlotsPerStrength() : intgetEquipSound() protected
protected function getEquipSound(int $slot, \pocketmine\item\Item $item) : stringgetFood() protected
protected function getFood(\pocketmine\item\Item $item) : ?arraygetInitialSizeInfo() protected
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetName()
public function getName() : stringgetNetworkTypeId()
public static function getNetworkTypeId() : stringgetRiderSeat() protected
protected function getRiderSeat() : \pocketmine\entity\riding\RideableSeatgetStrength()
public function getStrength() : intinitEntity() protected
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisCarpet()
public static function isCarpet(\pocketmine\item\Item $item) : boolWhether the item is a wool carpet (llama decor; moss carpets are not).
isTemptItem() protected
protected function isTemptItem(\pocketmine\item\Item $item) : boolrandomStats() protected
protected function randomStats() : arrayregisterGoals() protected
protected function registerGoals() : voidsaveNBT()
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsetCarpet()
public function setCarpet(\pocketmine\item\Item $carpet) : voidsetCoat()
public function setCoat(int $coat) : voidsetStrength()
public function setStrength(int $strength) : voidspitAt()
public function spitAt(\pocketmine\entity\Living $target, float $distance) : voidsyncNetworkData() protected
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void