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.
|
BELL
Bell is normally played when a note block is on top of a gold block.
|
CHIME
Chime is normally played when a note block is on top of a packed ice
block.
|
FLUTE
Flute is normally played when a note block is on top of a clay block.
|
GUITAR
Guitar is normally played when a note block is on top of a woolen 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.
|
XYLOPHONE
Xylophone is normally played when a note block is on top of a bone 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 final Instrument FLUTE
public static final Instrument BELL
public static final Instrument GUITAR
public static final Instrument CHIME
public static final Instrument XYLOPHONE
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 © 2017. All rights reserved.