Serializable
, Comparable<SoundCategory>
public enum SoundCategory extends Enum<SoundCategory>
Enum Constant | Description |
---|---|
AMBIENT |
|
BLOCKS |
|
HOSTILE |
|
MASTER |
|
MUSIC |
|
NEUTRAL |
|
PLAYERS |
|
RECORDS |
|
VOICE |
|
WEATHER |
Modifier and Type | Method | Description |
---|---|---|
static SoundCategory |
valueOf(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(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 nullCopyright © 2020. All rights reserved.