public enum Instrument extends Enum<Instrument>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is null@Deprecated public byte getType()
@Deprecated public static Instrument getByType(byte type)
type
- The type IDCopyright © 2014. All rights reserved.