public enum ListenerOptions extends java.lang.Enum<ListenerOptions>
Enum Constant and Description |
---|
ASYNC
Notify ProtocolLib that
PacketListener.onPacketSending(PacketEvent) is thread safe. |
DISABLE_GAMEPHASE_DETECTION
Disable the automatic game phase detection that will normally force
GamePhase.LOGIN when
a packet ID is known to be transmitted during login. |
INTERCEPT_INPUT_BUFFER
Retrieve the serialized client packet as it appears on the network stream.
|
Modifier and Type | Method and Description |
---|---|
static ListenerOptions |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ListenerOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ListenerOptions INTERCEPT_INPUT_BUFFER
public static final ListenerOptions DISABLE_GAMEPHASE_DETECTION
GamePhase.LOGIN
when
a packet ID is known to be transmitted during login.public static final ListenerOptions ASYNC
PacketListener.onPacketSending(PacketEvent)
is thread safe.public static ListenerOptions[] values()
for (ListenerOptions c : ListenerOptions.values()) System.out.println(c);
public static ListenerOptions 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