MobSound 5.46.0
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) : arraygetSound()
php
public function getSound() : string