Skip to content

RecordSound ​

class · pocketmine\world\sound\RecordSound · source

Implements Sound

Methods ​

__construct() ​

php
public function __construct(\pocketmine\block\utils\RecordType $recordType)

encode() ​

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

getSoundName() 5.46.0 ​

php
public static function getSoundName(\pocketmine\block\utils\RecordType $recordType) : string

Returns the sound event name the client plays for this record (also used to stop it).

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