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.
|
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.
|
boolean |
AsyncFilterManager.hasAsynchronousListeners(PacketEvent packet) |
boolean |
AsyncMarker.isMinecraftAsync(PacketEvent event)
Determine if Minecraft allows asynchronous processing of this packet.
|
void |
AsyncMarker.sendPacket(PacketEvent event)
Transmit a given packet to the current packet stream.
|
void |
AsyncFilterManager.signalPacketUpdate(PacketEvent packet)
Signal that a packet is ready to be transmitted.
|
void |
AsyncFilterManager.signalProcessingDone(PacketEvent packet)
Signal that a packet has finished processing.
|
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 |
PacketFilterManager.invokePacketRecieving(PacketEvent event)
Invokes the given packet event for every registered listener.
|
void |
PacketFilterManager.invokePacketSending(PacketEvent event)
Invokes the given packet event for every registered listener.
|