Skip to content

MobSound 5.46.0 ​

final class · pocketmine\world\sound\MobSound · source

Implements Sound

A sound made by a mob (ambient, hurt, death, milking, shearing, fuse...). The client picks the actual sound from the entity type, e.g. "ambient" for "minecraft:cow" is a moo.

Methods ​

__construct() ​

php
public function __construct(string $sound, string $entityTypeId, bool $baby = false, int $extraData = -1)

encode() ​

php
public function encode(\pocketmine\math\Vector3 $pos) : array

getSound() ​

php
public function getSound() : string

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