NoteSound
in package
implements
Sound
Interfaces, Classes, Traits and Enums
Table of Contents
- $instrument : NoteInstrument
- $note : int
- __construct() : mixed
- encode() : array<string|int, ClientboundPacket>
Properties
$instrument
private
NoteInstrument
$instrument
$note
private
int
$note
Methods
__construct()
public
__construct(NoteInstrument $instrument, int $note) : mixed
Parameters
- $instrument : NoteInstrument
- $note : int
Return values
mixed —encode()
public
encode(Vector3 $pos) : array<string|int, ClientboundPacket>
Parameters
- $pos : Vector3