|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Instrument>
org.bukkit.Instrument
public enum Instrument
| Enum Constant Summary | |
|---|---|
BASS_DRUM
Bass drum is normally played when a note block is on top of a stone-like block |
|
BASS_GUITAR
Bass guitar is normally played when a note block is on top of a wooden block. |
|
PIANO
Piano is the standard instrument for a note block. |
|
SNARE_DRUM
Snare drum is normally played when a note block is on top of a sandy block. |
|
STICKS
Sticks are normally played when a note block is on top of a glass block. |
|
| Method Summary | |
|---|---|
static Instrument |
getByType(byte type)
Get an instrument by its type ID. |
byte |
getType()
|
static Instrument |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Instrument[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Instrument PIANO
public static final Instrument BASS_DRUM
public static final Instrument SNARE_DRUM
public static final Instrument STICKS
public static final Instrument BASS_GUITAR
| Method Detail |
|---|
public static final Instrument[] values()
for(Instrument c : Instrument.values())
System.out.println(c);
public static Instrument valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified namepublic byte getType()
public static Instrument getByType(byte type)
type - The type ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||