| Package | Description | 
|---|---|
| org.bukkit | 
 The root package of the Bukkit API, contains generalized API classes. 
 | 
| org.bukkit.block.data.type | 
 Specific BlockData classes relevant to only a given block or set of blocks. 
 | 
| org.bukkit.entity | 
 Interfaces for non-voxel objects that can exist in a  
world, including all players, monsters, projectiles, etc. | 
| org.bukkit.event.block | 
| Modifier and Type | Method and Description | 
|---|---|
static @Nullable Instrument | 
Instrument.getByType(byte type)
Deprecated. 
 
Magic value 
 | 
static Instrument | 
Instrument.valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static Instrument[] | 
Instrument.values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull Instrument | 
NoteBlock.getInstrument()
Gets the value of the 'instrument' property. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
NoteBlock.setInstrument(@NotNull Instrument instrument)
Sets the value of the 'instrument' property. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Player.playNote(@NotNull Location loc,
        @NotNull Instrument instrument,
        @NotNull Note note)
Play a note for a player at a location. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull Instrument | 
NotePlayEvent.getInstrument()
Gets the  
Instrument to be used. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
NotePlayEvent.setInstrument(@NotNull Instrument instrument)
Deprecated. 
 
no effect on newer Minecraft versions 
 | 
| Constructor and Description | 
|---|
NotePlayEvent(@NotNull Block block,
             @NotNull Instrument instrument,
             @NotNull Note note)  | 
Copyright © 2021. All rights reserved.