public static enum PacketType.Protocol extends java.lang.Enum<PacketType.Protocol>
| Enum Constant and Description |
|---|
HANDSHAKING |
LEGACY
Only for packets removed in Minecraft 1.7.2
|
LOGIN |
PLAY |
STATUS |
| Modifier and Type | Method and Description |
|---|---|
static PacketType.Protocol |
fromVanilla(java.lang.Enum<?> vanilla)
Retrieve the correct protocol enum from a given vanilla enum instance.
|
static PacketType.Protocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PacketType.Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PacketType.Protocol HANDSHAKING
public static final PacketType.Protocol PLAY
public static final PacketType.Protocol STATUS
public static final PacketType.Protocol LOGIN
public static final PacketType.Protocol LEGACY
public static PacketType.Protocol[] values()
for (PacketType.Protocol c : PacketType.Protocol.values()) System.out.println(c);
public static PacketType.Protocol 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 nullpublic static PacketType.Protocol fromVanilla(java.lang.Enum<?> vanilla)
vanilla - - the vanilla protocol enum instance.