public static enum BasePacket.PacketType extends Enum<BasePacket.PacketType>
| Enum Constant and Description |
|---|
CLIENT
Client packet
|
SERVER
Server packet
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns packet type name.
|
static BasePacket.PacketType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BasePacket.PacketType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BasePacket.PacketType SERVER
public static final BasePacket.PacketType CLIENT
public static BasePacket.PacketType[] values()
for (BasePacket.PacketType c : BasePacket.PacketType.values()) System.out.println(c);
public static BasePacket.PacketType 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 getName()
Copyright © 2014–2015. All rights reserved.