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