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 |
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,
NetworkMarker marker,
org.bukkit.entity.Player client)
Creates an event representing a client packet transmission.
|
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,
NetworkMarker marker,
org.bukkit.entity.Player recipient)
Creates an event representing a server 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.
|
StructureModifier<org.bukkit.entity.Entity> |
PacketContainer.getEntityModifier(PacketEvent event)
Retrieves a read/write structure for entity objects.
|
static NetworkMarker |
NetworkMarker.getNetworkMarker(PacketEvent event)
Retrieve the network marker of a particular event without creating it.
|
byte[] |
PacketOutputHandler.handle(PacketEvent event,
byte[] buffer)
Invoked when a given packet is to be written to the output stream.
|
void |
PacketListener.onPacketReceiving(PacketEvent event)
Invoked right before a received 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 |
SortedPacketListenerList.invokePacketRecieving(ErrorReporter reporter,
PacketEvent event,
ListenerPriority priorityFilter)
Invokes the given packet event for every registered listener of the given priority.
|
void |
ListenerInvoker.invokePacketRecieving(PacketEvent event)
Invokes the given packet event for every registered listener.
|
void |
PacketFilterManager.invokePacketRecieving(PacketEvent event) |
void |
SortedPacketListenerList.invokePacketSending(ErrorReporter reporter,
PacketEvent event)
Invokes the given packet event for every registered listener.
|
void |
SortedPacketListenerList.invokePacketSending(ErrorReporter reporter,
PacketEvent event,
ListenerPriority priorityFilter)
Invokes the given packet event for every registered listener of the given priority.
|
void |
ListenerInvoker.invokePacketSending(PacketEvent event)
Invokes the given packet event for every registered listener.
|
void |
PacketFilterManager.invokePacketSending(PacketEvent event) |