public static enum TextPacket.Type extends java.lang.Enum<TextPacket.Type>
| Enum Constant and Description |
|---|
ANNOUNCEMENT |
ANNOUNCEMENT_JSON |
CHAT |
JSON |
JUKEBOX_POPUP |
POPUP |
RAW |
SYSTEM |
TIP |
TRANSLATION |
WHISPER |
WHISPER_JSON |
| Modifier and Type | Method and Description |
|---|---|
static TextPacket.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextPacket.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextPacket.Type RAW
public static final TextPacket.Type CHAT
public static final TextPacket.Type TRANSLATION
public static final TextPacket.Type POPUP
public static final TextPacket.Type JUKEBOX_POPUP
public static final TextPacket.Type TIP
public static final TextPacket.Type SYSTEM
public static final TextPacket.Type WHISPER
public static final TextPacket.Type ANNOUNCEMENT
public static final TextPacket.Type WHISPER_JSON
public static final TextPacket.Type JSON
public static final TextPacket.Type ANNOUNCEMENT_JSON
public static TextPacket.Type[] values()
for (TextPacket.Type c : TextPacket.Type.values()) System.out.println(c);
public static TextPacket.Type 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 null