Parrot 5.46.0
Extends TameableAnimal
Bedrock values (entities/parrot.json): 6 health, 0.5x1, flies (random_fly 15 blocks around, 1 up or down); tamed with seeds (1 in 3), then sits when ordered (and lands) and follows its owner (5 blocks, teleports beyond 12). Cookies poison it to death. Five colours (VARIANT 0-4). Not breedable. Loot (loot_tables/entities/parrot.json): 1-2 feathers; XP 1-3. Riding on shoulders, dancing and imitating mobs are not implemented.
Constants
TAG_VARIANT
php
public const TAG_VARIANT = "Variant"Methods
createBaby() protected
php
protected function createBaby(\pocketmine\entity\animal\Animal $partner, \pocketmine\entity\Location $location) : \pocketmine\entity\animal\AnimalgetAdultDrops() protected
php
protected function getAdultDrops() : arraygetFlyingSpeed() protected
php
protected function getFlyingSpeed() : floatgetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetVariant()
php
public function getVariant() : intinitEntity() 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) : boolregisterGoals() protected
php
protected function registerGoals() : voidrequiresTameToBreed() protected
php
protected function requiresTameToBreed() : boolsaveNBT()
php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsetSitting()
php
public function setSitting(bool $sitting) : voidsetVariant()
php
public function setVariant(int $variant) : voidsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void