public enum NoteBlockInstrument extends java.lang.Enum<NoteBlockInstrument> implements IStringSerializable
Enum Constant and Description |
---|
BASEDRUM |
BASS |
BELL |
CHIME |
FLUTE |
GUITAR |
HARP |
HAT |
SNARE |
XYLOPHONE |
Modifier and Type | Method and Description |
---|---|
static NoteBlockInstrument |
byState(IBlockState 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 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(IBlockState p_208087_0_)