public static enum PacketType.Sender extends java.lang.Enum<PacketType.Sender>
Enum Constant and Description |
---|
CLIENT
Indicates that packets of this type will be sent by connected clients.
|
SERVER
Indicate that packets of this type will be sent by the current server.
|
Modifier and Type | Method and Description |
---|---|
ConnectionSide |
toSide()
Retrieve the equivialent connection side.
|
static PacketType.Sender |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PacketType.Sender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PacketType.Sender CLIENT
public static final PacketType.Sender SERVER
public static PacketType.Sender[] values()
for (PacketType.Sender c : PacketType.Sender.values()) System.out.println(c);
public static PacketType.Sender 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 ConnectionSide toSide()