Skip to content

Chicken 5.46.0 ​

class · pocketmine\entity\animal\Chicken · source

Extends Animal

Bedrock values: 4 health, movement 0.25, 0.6x0.8, bred with seeds, lays an egg every 5-10 minutes, falls slowly and takes no fall damage. An adult carries a baby zombie (chicken jockey, seat 0.48 up) and walks to its rider's target (vanilla behavior.mount_pathing, 1.5x). Loot: 0-2 feathers, 1 raw chicken (cooked when burning), +0-1 each per Looting level.

Constants ​

EGG_MAX_TICKS ​

php
public const EGG_MAX_TICKS = 12000

EGG_MIN_TICKS ​

php
public const EGG_MIN_TICKS = 6000

Vanilla spawn_entity min/max wait: 300-600 seconds.

TAG_EGG_LAY_TIME ​

php
public const TAG_EGG_LAY_TIME = "EggLayTime"

Methods ​

calculateFallDamage() protected ​

php
protected function calculateFallDamage(float $fallDistance) : float

canBeRiddenBy() ​

php
public function canBeRiddenBy(\pocketmine\entity\Entity $entity) : bool

createBaby() protected ​

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

entityBaseTick() protected ​

php
protected function entityBaseTick(int $tickDiff = 1) : bool

getAdultDrops() protected ​

php
protected function getAdultDrops() : array

getEggLayTime() ​

php
public function getEggLayTime() : int

getInitialSizeInfo() protected ​

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

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getRideableSeats() ​

php
public function getRideableSeats() : array

initEntity() protected ​

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

isBreedingItem() ​

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

registerGoals() protected ​

php
protected function registerGoals() : void

saveNBT() ​

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

setEggLayTime() ​

php
public function setEggLayTime(int $ticks) : void

tryChangeMovement() protected ​

php
protected function tryChangeMovement() : void

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