Skip to content

TraderLlama 5.46.0 ​

class · pocketmine\entity\animal\TraderLlama · source

Extends Llama

Bedrock values (entities/trader_llama.json): a llama with the wandering trader's decor (MARK_VARIANT 1). It defends its trader: whoever hurts a wandering trader within 16 blocks becomes its target (see WanderingTrader::attack()). Breeds with llamas and trader llamas; the baby is a trader llama.

Methods ​

createBaby() protected ​

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

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

syncNetworkData() protected ​

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

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