Package | Description |
---|---|
org.bukkit |
More generalized classes in the API.
|
org.bukkit.block |
Classes used to manipulate the voxels in a
world ,
including special states. |
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 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 |
---|---|
boolean |
NoteBlock.play(Instrument instrument,
Note note)
Plays an arbitrary note with an arbitrary instrument
|
Modifier and Type | Method and Description |
---|---|
void |
Player.playNote(Location loc,
Instrument instrument,
Note note)
Play a note for a player at a location.
|
Modifier and Type | Method and Description |
---|---|
Instrument |
NotePlayEvent.getInstrument()
Gets the
Instrument to be used. |
Modifier and Type | Method and Description |
---|---|
void |
NotePlayEvent.setInstrument(Instrument instrument)
Overrides the
Instrument to be used. |
Constructor and Description |
---|
NotePlayEvent(Block block,
Instrument instrument,
Note note) |
Copyright © 2022. All rights reserved.