Uses of Enum Class
org.bukkit.Instrument
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Specific BlockData classes relevant to only a given block or set of blocks.
Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.-
Uses of Instrument in org.bukkit
Modifier and TypeMethodDescriptionstatic @Nullable Instrument
Instrument.getByType
(byte type) Get an instrument by its type ID.static Instrument
Returns the enum constant of this class with the specified name.static Instrument[]
Instrument.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of Instrument in org.bukkit.block.data.type
Modifier and TypeMethodDescriptionNoteBlock.getInstrument()
Gets the value of the 'instrument' property.Modifier and TypeMethodDescriptionvoid
NoteBlock.setInstrument
(@NotNull Instrument instrument) Sets the value of the 'instrument' property. -
Uses of Instrument in org.bukkit.entity
-
Uses of Instrument in org.bukkit.event.block
Modifier and TypeMethodDescriptionvoid
NotePlayEvent.setInstrument
(@NotNull Instrument instrument) Overrides theInstrument
to be used.ModifierConstructorDescriptionNotePlayEvent
(@NotNull Block block, @NotNull Instrument instrument, @NotNull Note note)