Serializable
, Comparable<Instrument>
public enum Instrument extends Enum<Instrument>
Enum Constant | Description |
---|---|
BANJO |
Banjo is normally played when a note block is on top of a hay block.
|
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.
|
BIT |
Bit is normally played when a note block is on top of a emerald block.
|
CHIME |
Chime is normally played when a note block is on top of a packed ice
block.
|
COW_BELL |
Cow Bell is normally played when a note block is on top of a soul sand block.
|
DIDGERIDOO |
Didgeridoo is normally played when a note block is on top of a pumpkin 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.
|
IRON_XYLOPHONE |
Iron Xylophone is normally played when a note block is on top of a iron block.
|
PIANO |
Piano is the standard instrument for a note block.
|
PLING |
Pling is normally played when a note block is on top of a glowstone 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 | Description |
---|---|---|
static @Nullable 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 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(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 @Nullable public static @Nullable Instrument getByType(byte type)
type
- The type IDCopyright © 2020. All rights reserved.