Skip to content

Parrot 5.46.0 ​

class · pocketmine\entity\animal\Parrot · source

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\Animal

getAdultDrops() protected ​

php
protected function getAdultDrops() : array

getFlyingSpeed() protected ​

php
protected function getFlyingSpeed() : float

getInitialSizeInfo() protected ​

php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfo

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getVariant() ​

php
public function getVariant() : int

initEntity() protected ​

php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : void

isBreedingItem() ​

php
public function isBreedingItem(\pocketmine\item\Item $item) : bool

onInteractWithItem() protected ​

php
protected function onInteractWithItem(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : bool

registerGoals() protected ​

php
protected function registerGoals() : void

requiresTameToBreed() protected ​

php
protected function requiresTameToBreed() : bool

saveNBT() ​

php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTag

setSitting() ​

php
public function setSitting(bool $sitting) : void

setVariant() ​

php
public function setVariant(int $variant) : void

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.