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 Instrument
Instrument.getByType
(byte type) Deprecated.Magic valuestatic 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.Modifier and TypeMethodDescriptionvoid
World.playNote
(Location loc, Instrument instrument, Note note) Play a note at the provided Location in the World. -
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
(Instrument instrument) Sets the value of the 'instrument' property. -
Uses of Instrument in org.bukkit.entity
Modifier and TypeMethodDescriptionvoid
Player.playNote
(Location loc, Instrument instrument, Note note) Play a note for the player at a location. -
Uses of Instrument in org.bukkit.event.block
Modifier and TypeMethodDescriptionvoid
NotePlayEvent.setInstrument
(Instrument instrument) Deprecated.no effect on newer Minecraft versions