Camel 5.46.0
Extends Animal
Bedrock values (entities/camel.json): 32 health, 1.7x2.375 (0.945 tall when sitting), movement 0.09 (strolls at 2x, panics at 4x), babies scale 0.45. Tempted (2.5x), bred and healed (2) with cactus. Sits down from time to time (SITTING flag) and stands up when hurt. Takes a saddle (no taming needed). No loot; XP 1-3.
Riding: two players fit; a sitting camel stands up when mounted. Seats, steering and dashing are described in CamelTrait.
Methods
attack()
php
public function attack(\pocketmine\event\entity\EntityDamageEvent $source) : voidcanBeRiddenBy()
php
public function canBeRiddenBy(\pocketmine\entity\Entity $entity) : boolcreateBaby() protected
php
protected function createBaby(\pocketmine\entity\animal\Animal $partner, \pocketmine\entity\Location $location) : \pocketmine\entity\animal\AnimalentityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolgetBabyScale() protected
php
protected function getBabyScale() : floatgetDrops()
php
public function getDrops() : arraygetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetItemInteractButtonText() protected
php
protected function getItemInteractButtonText(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : ?stringgetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetRideableSeats()
php
public function getRideableSeats() : arrayhandleRiderInput()
php
public function handleRiderInput(\pocketmine\player\Player $rider, \pocketmine\entity\riding\RiderInput $input) : voidinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisBreedingItem()
php
public function isBreedingItem(\pocketmine\item\Item $item) : boolonInteractWithItem() protected
php
protected function onInteractWithItem(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : boolonPassengerAdded() protected
php
protected function onPassengerAdded(\pocketmine\entity\Entity $passenger) : voidregisterGoals() protected
php
protected function registerGoals() : voidsaveNBT()
php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void