public enum SoundCategory extends java.lang.Enum<SoundCategory>
Enum Constant and Description |
---|
AMBIENT |
BLOCKS |
HOSTILE |
MASTER |
MUSIC |
NEUTRAL |
PLAYERS |
RECORDS |
VOICE |
WEATHER |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
private static java.util.Map<java.lang.String,SoundCategory> |
SOUND_CATEGORIES |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
static SoundCategory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SoundCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SoundCategory MASTER
public static final SoundCategory MUSIC
public static final SoundCategory RECORDS
public static final SoundCategory WEATHER
public static final SoundCategory BLOCKS
public static final SoundCategory HOSTILE
public static final SoundCategory NEUTRAL
public static final SoundCategory PLAYERS
public static final SoundCategory AMBIENT
public static final SoundCategory VOICE
private static final java.util.Map<java.lang.String,SoundCategory> SOUND_CATEGORIES
private final java.lang.String name
public static SoundCategory[] values()
for (SoundCategory c : SoundCategory.values()) System.out.println(c);
public static SoundCategory 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()