Package | Description |
---|---|
com.comphenix.protocol |
Contains classes for retrieving the main
ProtocolMananger object. |
com.comphenix.protocol.async | |
com.comphenix.protocol.events |
Modifier and Type | Method and Description |
---|---|
boolean |
CommandFilter.Filter.evaluate(javax.script.ScriptEngine context,
PacketEvent event)
Evaluate the current filter using the provided ScriptEngine as context.
|
boolean |
CommandFilter.filterEvent(PacketEvent event)
Determine whether or not to pass the given packet event to the packet listeners.
|
boolean |
CommandFilter.filterEvent(PacketEvent event,
CommandFilter.FilterFailedHandler handler)
Determine whether or not to pass the given packet event to the packet listeners.
|
boolean |
CommandFilter.FilterFailedHandler.handle(PacketEvent event,
CommandFilter.Filter filter,
java.lang.Exception ex)
Invoked when a given filter has failed.
|
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) |