|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.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)
Deprecated. Magic value |
byte |
getType()
Deprecated. Magic value |
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 are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
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 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 name
NullPointerException
- if the argument is null@Deprecated public byte getType()
@Deprecated 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 |