Package | Description |
---|---|
org.bukkit |
More generalized classes in the API.
|
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 | 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 | Description |
---|---|---|
Instrument |
NoteBlock.getInstrument() |
Gets the value of the 'instrument' property.
|
Modifier and Type | Method | Description |
---|---|---|
void |
NoteBlock.setInstrument(Instrument instrument) |
Sets the value of the 'instrument' property.
|
Modifier and Type | Method | Description |
---|---|---|
void |
Player.playNote(Location loc,
Instrument instrument,
Note note) |
Play a note for a player at a location.
|
Modifier and Type | Method | Description |
---|---|---|
Instrument |
NotePlayEvent.getInstrument() |
Gets the
Instrument to be used. |
Modifier and Type | Method | Description |
---|---|---|
void |
NotePlayEvent.setInstrument(Instrument instrument) |
Deprecated.
no effect on newer Minecraft versions
|
Constructor | Description |
---|---|
NotePlayEvent(Block block,
Instrument instrument,
Note note) |
Copyright © 2020. All rights reserved.