public enum PacketDirection extends Enum<PacketDirection>
| Enum Constant and Description | 
|---|
CLIENT_TO_SERVER  | 
HANDSHAKE  | 
LOGIN  | 
SERVER_TO_CLIENT  | 
STATUS  | 
| Modifier and Type | Method and Description | 
|---|---|
NPacketUnset | 
createUnsetPacket(String packetName)  | 
String | 
getPrefix()  | 
List<PacketType> | 
getTypes()  | 
PacketType | 
getUnset()  | 
static PacketDirection | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static PacketDirection[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final PacketDirection CLIENT_TO_SERVER
public static final PacketDirection SERVER_TO_CLIENT
public static final PacketDirection STATUS
public static final PacketDirection LOGIN
public static final PacketDirection HANDSHAKE
public static PacketDirection[] values()
for (PacketDirection c : PacketDirection.values()) System.out.println(c);
public static PacketDirection 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 String getPrefix()
public List<PacketType> getTypes()
public PacketType getUnset()
public NPacketUnset createUnsetPacket(String packetName)