Package | Description |
---|---|
com.comphenix.protocol |
Contains classes for retrieving the main ProtocolMananger object.
|
com.comphenix.protocol.async | |
com.comphenix.protocol.events | |
com.comphenix.protocol.injector | |
com.comphenix.protocol.timing |
Modifier and Type | Method and Description |
---|---|
java.util.Set<PacketListener> |
AsynchronousManager.getAsyncHandlers()
Get an immutable set of every registered asynchronous packet listener.
|
com.google.common.collect.ImmutableSet<PacketListener> |
ProtocolManager.getPacketListeners()
Retrieves a list of every registered packet listener.
|
java.util.Set<PacketListener> |
AsynchronousManager.getTimeoutHandlers()
Get a immutable set of every registered timeout handler.
|
Modifier and Type | Method and Description |
---|---|
void |
ProtocolManager.addPacketListener(PacketListener listener)
Adds a packet listener.
|
AsyncListenerHandler |
AsynchronousManager.registerAsyncHandler(PacketListener listener)
Registers an asynchronous packet handler.
|
void |
AsynchronousManager.registerTimeoutHandler(PacketListener listener)
Register a synchronous listener that handles packets when they time out.
|
void |
ProtocolManager.removePacketListener(PacketListener listener)
Removes a given packet listener.
|
void |
AsynchronousManager.unregisterTimeoutHandler(PacketListener listener)
Unregisters a given timeout listener.
|
Modifier and Type | Method and Description |
---|---|
PacketListener |
AsyncListenerHandler.getAsyncListener()
Retrieve the current asynchronous packet listener.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<PacketListener> |
AsyncFilterManager.getAsyncHandlers() |
java.util.Set<PacketListener> |
AsyncFilterManager.getTimeoutHandlers() |
Modifier and Type | Method and Description |
---|---|
AsyncListenerHandler |
AsyncFilterManager.registerAsyncHandler(PacketListener listener) |
AsyncListenerHandler |
AsyncFilterManager.registerAsyncHandler(PacketListener listener,
boolean autoInject)
Registers an asynchronous packet handler.
|
void |
AsyncFilterManager.registerTimeoutHandler(PacketListener listener) |
void |
AsyncFilterManager.unregisterTimeoutHandler(PacketListener listener) |
Modifier and Type | Class and Description |
---|---|
class |
MonitorAdapter
Represents a listener that is notified of every sent and received packet.
|
class |
PacketAdapter
Represents a packet listener with useful constructors.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
PacketAdapter.getPluginName(PacketListener listener)
Retrieves the name of the plugin that has been associated with the listener.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSet<PacketListener> |
DelayedPacketManager.getPacketListeners() |
com.google.common.collect.ImmutableSet<PacketListener> |
PacketFilterManager.getPacketListeners() |
Modifier and Type | Method and Description |
---|---|
void |
DelayedPacketManager.addPacketListener(PacketListener listener) |
void |
PacketFilterManager.addPacketListener(PacketListener listener) |
void |
DelayedPacketManager.removePacketListener(PacketListener listener) |
void |
PacketFilterManager.removePacketListener(PacketListener listener) |
static void |
PacketFilterManager.verifyWhitelist(PacketListener listener,
ListeningWhitelist whitelist)
Determine if the packet IDs in a whitelist is valid.
|
Modifier and Type | Method and Description |
---|---|
TimedTracker |
TimedListenerManager.getTracker(PacketListener listener,
TimedListenerManager.ListenerType type)
Retrieve the timed tracker associated with the given listener and listener type.
|