PocketMine-MP 5.15.1 git-ed158f8a1b0cfe334ac5f45febc0f633602014f2
pocketmine\world\sound\NoteSound Class Reference
+ Inheritance diagram for pocketmine\world\sound\NoteSound:
+ Collaboration diagram for pocketmine\world\sound\NoteSound:

Public Member Functions

 __construct (private NoteInstrument $instrument, private int $note)
 
 encode (Vector3 $pos)
 

Detailed Description

Definition at line 31 of file NoteSound.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\sound\NoteSound::__construct ( private NoteInstrument  $instrument,
private int  $note 
)

Definition at line 32 of file NoteSound.php.

Member Function Documentation

◆ encode()

pocketmine\world\sound\NoteSound::encode ( Vector3  $pos)
Returns
ClientboundPacket[]

Implements pocketmine\world\sound\Sound.

Definition at line 41 of file NoteSound.php.


The documentation for this class was generated from the following file: