public static enum PacketType.Protocol extends 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(Enum<?> vanilla)
Retrieve the correct protocol enum from a given vanilla enum instance.
|
String |
getPacketName() |
static PacketType.Protocol |
valueOf(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(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 static PacketType.Protocol fromVanilla(Enum<?> vanilla)
vanilla - - the vanilla protocol enum instance.public String getPacketName()
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.