Package | Description |
---|---|
com.comphenix.protocol.events |
Modifier and Type | Method and Description |
---|---|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.clientSide()
Set this adapter to also look for client-side packets.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.connectionSide(ConnectionSide connectionSide)
Set the packet types this listener is looking for.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.gamePhase(GamePhase gamePhase)
Set which game phase this listener is active under.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.listenerPriority(ListenerPriority listenerPriority)
Set the the event priority, where the execution is in ascending order from lowest to highest.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.loginPhase()
Set the game phase to
GamePhase.LOGIN , allowing ProtocolLib to intercept login packets. |
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.optionAsync()
Set the listener option to
ListenerOptions.ASYNC , indicating that our listener is thread safe. |
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.optionIntercept()
Set the listener option to
ListenerOptions.INTERCEPT_INPUT_BUFFER , causing ProtocolLib to read the raw packet data from the network stream. |
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.optionManualGamePhase()
Set the listener option to
ListenerOptions.DISABLE_GAMEPHASE_DETECTION , causing ProtocolLib to ignore automatic game phase detection. |
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.options(ListenerOptions... options)
Set listener options that decide whether or not to intercept the raw packet data as read from the network stream.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.options(java.util.Set<? extends ListenerOptions> options)
Set listener options that decide whether or not to intercept the raw packet data as read from the network stream.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.packets(java.lang.Integer... packets)
Deprecated.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.packets(java.util.Set<java.lang.Integer> packets)
Deprecated.
|
static PacketAdapter.AdapterParameteters |
PacketAdapter.params()
Construct a helper object for passing parameters to the packet adapter.
|
static PacketAdapter.AdapterParameteters |
PacketAdapter.params(org.bukkit.plugin.Plugin plugin,
java.lang.Integer... packets)
Deprecated.
|
static PacketAdapter.AdapterParameteters |
PacketAdapter.params(org.bukkit.plugin.Plugin plugin,
PacketType... packets)
Construct a helper object for passing parameters to the packet adapter.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.plugin(org.bukkit.plugin.Plugin plugin)
Set the plugin that spawned this listener.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.serverSide()
Set this adapter to also look for server-side packets.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.types(PacketType... packets)
Set the packet types the listener is looking for.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.types(java.util.Set<PacketType> packets)
Set the packet types the listener is looking for.
|
Constructor and Description |
---|
PacketAdapter(PacketAdapter.AdapterParameteters params)
Initialize a packet adapter using a collection of parameters.
|