Skip to content

Donkey 5.46.0 ​

class · pocketmine\entity\animal\Donkey · source

Extends AbstractHorse

Bedrock values (entities/donkey.json): 15-30 health, movement 0.175, jump strength 0.5, 1.4x1.6. Bred (tamed) with golden apples and golden carrots; with a horse it makes a mule. A tamed adult takes a chest (15 slots, see AbstractHorse). Loot (loot_tables/entities/horse.json): 0-2 leather (+0-1 per Looting level); XP 1-3.

Methods ​

breedsWith() protected ​

php
protected function breedsWith(\pocketmine\entity\animal\Animal $other) : bool

canHaveChest() ​

php
public function canHaveChest() : bool

createBaby() protected ​

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

getInitialSizeInfo() protected ​

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

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getRiderSeat() protected ​

php
protected function getRiderSeat() : \pocketmine\entity\riding\RideableSeat

randomStats() protected ​

php
protected function randomStats() : array

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