public enum SendDataOptions extends java.lang.Enum<SendDataOptions>
Enum Constant and Description |
---|
Chat
Mark that this packet contains chat data, such as a player-to-player message string entered using the keyboard.
|
InOrder
Sends the data with guaranteed ordering, but without reliable delivery.
|
None
Sends the data with no guarantees.
|
Reliable
Sends the data with reliable delivery, but no special ordering.
|
ReliableInOrder
Sends the data with reliability and arrival in the order originally sent.
|
Modifier and Type | Method and Description |
---|---|
static SendDataOptions |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SendDataOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SendDataOptions None
public static final SendDataOptions Reliable
public static final SendDataOptions InOrder
public static final SendDataOptions ReliableInOrder
public static final SendDataOptions Chat
public static SendDataOptions[] values()
for (SendDataOptions c : SendDataOptions.values()) System.out.println(c);
public static SendDataOptions 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 null