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