public enum NoteBlockInstrument extends java.lang.Enum<NoteBlockInstrument> implements IStringSerializable
Enum Constant and Description |
---|
BANJO |
BASEDRUM |
BASS |
BELL |
BIT |
CHIME |
COW_BELL |
DIDGERIDOO |
FLUTE |
GUITAR |
HARP |
HAT |
IRON_XYLOPHONE |
PLING |
SNARE |
XYLOPHONE |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
private SoundEvent |
sound |
Modifier and Type | Method and Description |
---|---|
static NoteBlockInstrument |
byState(BlockState p_208087_0_) |
java.lang.String |
getName() |
SoundEvent |
getSound() |
static NoteBlockInstrument |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NoteBlockInstrument[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoteBlockInstrument HARP
public static final NoteBlockInstrument BASEDRUM
public static final NoteBlockInstrument SNARE
public static final NoteBlockInstrument HAT
public static final NoteBlockInstrument BASS
public static final NoteBlockInstrument FLUTE
public static final NoteBlockInstrument BELL
public static final NoteBlockInstrument GUITAR
public static final NoteBlockInstrument CHIME
public static final NoteBlockInstrument XYLOPHONE
public static final NoteBlockInstrument IRON_XYLOPHONE
public static final NoteBlockInstrument COW_BELL
public static final NoteBlockInstrument DIDGERIDOO
public static final NoteBlockInstrument BIT
public static final NoteBlockInstrument BANJO
public static final NoteBlockInstrument PLING
private final java.lang.String name
private final SoundEvent sound
public static NoteBlockInstrument[] values()
for (NoteBlockInstrument c : NoteBlockInstrument.values()) System.out.println(c);
public static NoteBlockInstrument 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 java.lang.String getName()
getName
in interface IStringSerializable
public SoundEvent getSound()
public static NoteBlockInstrument byState(BlockState p_208087_0_)