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.block.data.type | |
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(java.lang.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 |
---|---|---|
boolean |
NoteBlock.play(Instrument instrument,
Note note) |
Deprecated.
Plays an arbitrary note with an arbitrary instrument at the block.
|
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 © 2018. All rights reserved.