public enum Instrument extends Enum<Instrument> implements StringIdentifiable
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 String |
name |
private SoundEvent |
sound |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
static Instrument |
fromBlockState(BlockState state) |
SoundEvent |
getSound() |
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
createCodec, createCodec, method_28142
public static final Instrument HARP
public static final Instrument BASEDRUM
public static final Instrument SNARE
public static final Instrument HAT
public static final Instrument BASS
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
private final String name
private final SoundEvent sound
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 nullpublic String asString()
asString
in interface StringIdentifiable
public SoundEvent getSound()
public static Instrument fromBlockState(BlockState state)