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 | Method and Description |
---|---|
static SoundCategory |
getByName(java.lang.String categoryName) |
java.lang.String |
getName() |
static java.util.Set<java.lang.String> |
getSoundCategoryNames() |
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
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()
public static SoundCategory getByName(java.lang.String categoryName)
public static java.util.Set<java.lang.String> getSoundCategoryNames()