public enum VanillaInstrument extends java.lang.Enum<VanillaInstrument> implements IInstrument
| Enum Constant and Description |
|---|
BANJO |
BASS_DRUM |
BELL |
BIT |
CHIME |
CLICK |
COW_BELL |
DIDGERIDOO |
DOUBLE_BASS |
FLUTE |
GUITAR |
IRON_XYLOPHONE |
PIANO |
PLING |
SNARE_DRUM |
XYLOPHONE |
| Modifier and Type | Method and Description |
|---|---|
float |
getDefaultPitch() |
java.lang.String |
getRegistryName() |
java.lang.String |
getSoundName() |
boolean |
isVanillaNote() |
static VanillaInstrument |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VanillaInstrument[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VanillaInstrument PIANO
public static final VanillaInstrument DOUBLE_BASS
public static final VanillaInstrument BASS_DRUM
public static final VanillaInstrument SNARE_DRUM
public static final VanillaInstrument CLICK
public static final VanillaInstrument GUITAR
public static final VanillaInstrument FLUTE
public static final VanillaInstrument BELL
public static final VanillaInstrument CHIME
public static final VanillaInstrument XYLOPHONE
public static final VanillaInstrument IRON_XYLOPHONE
public static final VanillaInstrument COW_BELL
public static final VanillaInstrument DIDGERIDOO
public static final VanillaInstrument BIT
public static final VanillaInstrument BANJO
public static final VanillaInstrument PLING
public static VanillaInstrument[] values()
for (VanillaInstrument c : VanillaInstrument.values()) System.out.println(c);
public static VanillaInstrument 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 getRegistryName()
public java.lang.String getSoundName()
getSoundName in interface IInstrumentpublic boolean isVanillaNote()
isVanillaNote in interface IInstrumentpublic float getDefaultPitch()
getDefaultPitch in interface IInstrument