Skip to content

ZombieHorse 5.46.0 ​

class · pocketmine\entity\animal\ZombieHorse · source

Extends AbstractHorse
Implements Undead

Bedrock values (entities/zombie_horse.json, 1.21.130): 25 health, movement 0.205-0.275, 1.4x1.6, tempted by red mushrooms (which also heal it, 3 health, and raise its temper by 10). Passive. Tamed by riding it like a horse (vanilla tamemount); a wild one may carry an adult zombie rider. Natural spawning with a zombie rider is not implemented. Can't breed. Wears horse armor like a horse (saddle and armor slots, like GeyserMC's zombie horse screen). Loot (loot_tables/entities/zombie_horse.json): 2-3 rotten flesh (+0-1 per Looting level); XP 1-3.

Methods ​

canBeRiddenBy() ​

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

canBreathe() ​

php
public function canBreathe() : bool

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

getFood() protected ​

php
protected function getFood(\pocketmine\item\Item $item) : ?array

getInitialSizeInfo() protected ​

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

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

hasArmorSlot() ​

php
public function hasArmorSlot() : bool

isBreedingItem() ​

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

isTemptItem() protected ​

php
protected function isTemptItem(\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.