@Environment(value=CLIENT) public enum NarratorOption extends Enum<NarratorOption>
Modifier and Type | Field and Description |
---|---|
private int |
id |
private String |
translationKey |
private static NarratorOption[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
static NarratorOption |
byId(int id) |
int |
getId() |
String |
getTranslationKey() |
static NarratorOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NarratorOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NarratorOption OFF
public static final NarratorOption ALL
public static final NarratorOption CHAT
public static final NarratorOption SYSTEM
private static final NarratorOption[] VALUES
private final int id
private final String translationKey
public static NarratorOption[] values()
for (NarratorOption c : NarratorOption.values()) System.out.println(c);
public static NarratorOption 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 int getId()
public String getTranslationKey()
public static NarratorOption byId(int id)