public enum Instrument extends java.lang.Enum<Instrument>
| Enum Constant and Description |
|---|
BANJO |
BASS |
BASS_DRUM |
BELL |
BIT |
CHIME |
COW_BELL |
DIDGERIDOO |
FLUTE |
GUITAR |
HARP |
HAT |
IRON_XYLOPHONE |
PLING |
SNARE |
XYLOPHONE |
| Modifier and Type | Method and Description |
|---|---|
static Instrument |
fromMcId(byte mcId) |
static Instrument |
fromNbsId(byte nbsId) |
byte |
mcId() |
byte |
nbsId() |
static Instrument |
valueOf(java.lang.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.
|
public static final Instrument HARP
public static final Instrument BASS
public static final Instrument BASS_DRUM
public static final Instrument SNARE
public static final Instrument HAT
public static final Instrument GUITAR
public static final Instrument FLUTE
public static final Instrument BELL
public static final Instrument CHIME
public static final Instrument XYLOPHONE
public static final Instrument IRON_XYLOPHONE
public static final Instrument COW_BELL
public static final Instrument DIDGERIDOO
public static final Instrument BIT
public static final Instrument BANJO
public static final Instrument PLING
public static Instrument[] values()
for (Instrument c : Instrument.values()) System.out.println(c);
public static Instrument valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte nbsId()
public byte mcId()
public static Instrument fromNbsId(byte nbsId)
public static Instrument fromMcId(byte mcId)