public static enum TextPacket.Type extends Enum<TextPacket.Type>
| Enum Constant and Description |
|---|
ANNOUNCEMENT |
CHAT |
JUKEBOX_POPUP |
POPUP |
RAW |
SYSTEM |
TIP |
TRANSLATION |
WHISPER |
| Modifier and Type | Method and Description |
|---|---|
static TextPacket.Type |
valueOf(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 TextPacket.Type[] values()
for (TextPacket.Type c : TextPacket.Type.values()) System.out.println(c);
public static TextPacket.Type 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 © 2018–2019 NukkitX. All rights reserved.