Chicken 5.46.0
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 = 12000EGG_MIN_TICKS
php
public const EGG_MIN_TICKS = 6000Vanilla 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) : floatcanBeRiddenBy()
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) : boolgetAdultDrops() protected
php
protected function getAdultDrops() : arraygetEggLayTime()
php
public function getEggLayTime() : intgetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetRideableSeats()
php
public function getRideableSeats() : arrayinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisBreedingItem()
php
public function isBreedingItem(\pocketmine\item\Item $item) : boolregisterGoals() protected
php
protected function registerGoals() : voidsaveNBT()
php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsetEggLayTime()
php
public function setEggLayTime(int $ticks) : voidtryChangeMovement() protected
php
protected function tryChangeMovement() : void