Skip to content

Mule 5.46.0 ​

class · pocketmine\entity\animal\Mule · source

Extends AbstractHorse

Bedrock values (entities/mule.json): 15-30 health, movement 0.175, jump strength 0.5, 1.4x1.6. Born from a horse and a donkey; can't breed. 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 ​

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

isBreedingItem() ​

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

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.