Package | Description |
---|---|
com.comphenix.protocol | |
com.comphenix.protocol.async | |
com.comphenix.protocol.events | |
com.comphenix.protocol.injector |
Modifier and Type | Method and Description |
---|---|
boolean |
AsynchronousManager.hasAsynchronousListeners(PacketEvent packet)
Determine if a given synchronous packet has asynchronous listeners.
|
void |
AsynchronousManager.signalPacketTransmission(PacketEvent packet)
Signal that a packet is ready to be transmitted.
|
Modifier and Type | Method and Description |
---|---|
void |
AsyncListenerHandler.enqueuePacket(PacketEvent packet)
Queue a packet for processing.
|
void |
AsyncFilterManager.enqueueSyncPacket(PacketEvent syncPacket,
AsyncMarker asyncMarker)
Enqueue a packet for asynchronous processing.
|
com.comphenix.protocol.async.PacketProcessingQueue |
AsyncFilterManager.getProcessingQueue(PacketEvent packet)
Retrieve the processing queue this packet belongs to.
|
com.comphenix.protocol.async.PacketSendingQueue |
AsyncFilterManager.getSendingQueue(PacketEvent packet)
Retrieve the sending queue this packet belongs to.
|
com.comphenix.protocol.async.PacketSendingQueue |
AsyncFilterManager.getSendingQueue(PacketEvent packet,
boolean createNew)
Retrieve the sending queue this packet belongs to.
|
boolean |
AsyncFilterManager.hasAsynchronousListeners(PacketEvent packet) |
boolean |
AsyncMarker.isMinecraftAsync(PacketEvent event)
Determine if Minecraft allows asynchronous processing of this packet.
|
void |
AsyncFilterManager.signalFreeProcessingSlot(PacketEvent packet)
Signal that a packet has finished processing.
|
void |
AsyncFilterManager.signalPacketTransmission(PacketEvent packet) |
Modifier and Type | Method and Description |
---|---|
static PacketEvent |
PacketEvent.fromClient(java.lang.Object source,
PacketContainer packet,
org.bukkit.entity.Player client)
Creates an event representing a client packet transmission.
|
static PacketEvent |
PacketEvent.fromServer(java.lang.Object source,
PacketContainer packet,
org.bukkit.entity.Player recipient)
Creates an event representing a server packet transmission.
|
static PacketEvent |
PacketEvent.fromSynchronous(PacketEvent event,
AsyncMarker marker)
Create an asynchronous packet event from a synchronous event and a async marker.
|
Modifier and Type | Method and Description |
---|---|
static PacketEvent |
PacketEvent.fromSynchronous(PacketEvent event,
AsyncMarker marker)
Create an asynchronous packet event from a synchronous event and a async marker.
|
void |
PacketListener.onPacketReceiving(PacketEvent event)
Invoked right before a recieved packet from a client is being processed.
|
void |
PacketAdapter.onPacketReceiving(PacketEvent event) |
void |
PacketListener.onPacketSending(PacketEvent event)
Invoked right before a packet is transmitted from the server to the client.
|
void |
PacketAdapter.onPacketSending(PacketEvent event) |
Modifier and Type | Method and Description |
---|---|
void |
SortedPacketListenerList.invokePacketRecieving(ErrorReporter reporter,
PacketEvent event)
Invokes the given packet event for every registered listener.
|
void |
PacketFilterManager.invokePacketRecieving(PacketEvent event) |
void |
ListenerInvoker.invokePacketRecieving(PacketEvent event)
Invokes the given packet event for every registered listener.
|
void |
SortedPacketListenerList.invokePacketSending(ErrorReporter reporter,
PacketEvent event)
Invokes the given packet event for every registered listener.
|
void |
PacketFilterManager.invokePacketSending(PacketEvent event) |
void |
ListenerInvoker.invokePacketSending(PacketEvent event)
Invokes the given packet event for every registered listener.
|