Uses of Class
com.comphenix.protocol.events.PacketEvent
Packages that use PacketEvent
Package
Description
Contains classes for retrieving the main ProtocolMananger object.
-
Uses of PacketEvent in com.comphenix.protocol
Methods in com.comphenix.protocol with parameters of type PacketEventModifier and TypeMethodDescriptionbooleanCommandFilter.Filter.evaluate(ScriptEngine context, PacketEvent event)Evaluate the current filter using the provided ScriptEngine as context.booleanCommandFilter.filterEvent(PacketEvent event)Determine whether or not to pass the given packet event to the packet listeners.booleanCommandFilter.filterEvent(PacketEvent event, CommandFilter.FilterFailedHandler handler)Determine whether or not to pass the given packet event to the packet listeners.booleanCommandFilter.FilterFailedHandler.handle(PacketEvent event, CommandFilter.Filter filter, Exception ex)Invoked when a given filter has failed.booleanAsynchronousManager.hasAsynchronousListeners(PacketEvent packet)Determine if a given synchronous packet has asynchronous listeners.voidPacketLogging.onPacketReceiving(PacketEvent event)voidPacketLogging.onPacketSending(PacketEvent event)voidAsynchronousManager.signalPacketTransmission(PacketEvent packet)Signal that a packet is ready to be transmitted. -
Uses of PacketEvent in com.comphenix.protocol.async
Methods in com.comphenix.protocol.async with parameters of type PacketEventModifier and TypeMethodDescriptionvoidAsyncListenerHandler.enqueuePacket(PacketEvent packet)Queue a packet for processing.voidAsyncFilterManager.enqueueSyncPacket(PacketEvent syncPacket, AsyncMarker asyncMarker)Enqueue a packet for asynchronous processing.com.comphenix.protocol.async.PacketProcessingQueueAsyncFilterManager.getProcessingQueue(PacketEvent packet)Retrieve the processing queue this packet belongs to.com.comphenix.protocol.async.PacketSendingQueueAsyncFilterManager.getSendingQueue(PacketEvent packet)Retrieve the sending queue this packet belongs to.com.comphenix.protocol.async.PacketSendingQueueAsyncFilterManager.getSendingQueue(PacketEvent packet, boolean createNew)Retrieve the sending queue this packet belongs to.booleanAsyncFilterManager.hasAsynchronousListeners(PacketEvent packet)booleanAsyncMarker.isMinecraftAsync(PacketEvent event)Determine if Minecraft allows asynchronous processing of this packet.voidAsyncFilterManager.signalFreeProcessingSlot(PacketEvent packet)Signal that a packet has finished processing.voidAsyncFilterManager.signalPacketTransmission(PacketEvent packet) -
Uses of PacketEvent in com.comphenix.protocol.events
Methods in com.comphenix.protocol.events that return PacketEventModifier and TypeMethodDescriptionstatic PacketEventPacketEvent.fromClient(Object source, PacketContainer packet, NetworkMarker marker, org.bukkit.entity.Player client)Creates an event representing a client packet transmission.static PacketEventPacketEvent.fromClient(Object source, PacketContainer packet, NetworkMarker marker, org.bukkit.entity.Player client, boolean filtered)Creates an event representing a client packet transmission.static PacketEventPacketEvent.fromClient(Object source, PacketContainer packet, org.bukkit.entity.Player client)Creates an event representing a client packet transmission.static PacketEventPacketEvent.fromServer(Object source, PacketContainer packet, NetworkMarker marker, org.bukkit.entity.Player recipient)Creates an event representing a server packet transmission.static PacketEventPacketEvent.fromServer(Object source, PacketContainer packet, NetworkMarker marker, org.bukkit.entity.Player recipient, boolean filtered)Creates an event representing a server packet transmission.static PacketEventPacketEvent.fromServer(Object source, PacketContainer packet, org.bukkit.entity.Player recipient)Creates an event representing a server packet transmission.static PacketEventPacketEvent.fromSynchronous(PacketEvent event, AsyncMarker marker)Create an asynchronous packet event from a synchronous event and a async marker.Methods in com.comphenix.protocol.events with parameters of type PacketEventModifier and TypeMethodDescriptionstatic PacketEventPacketEvent.fromSynchronous(PacketEvent event, AsyncMarker marker)Create an asynchronous packet event from a synchronous event and a async marker.StructureModifier<org.bukkit.entity.Entity>AbstractStructure.getEntityModifier(PacketEvent event)Retrieves a read/write structure for entity objects.static NetworkMarkerNetworkMarker.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.voidPacketAdapter.onPacketReceiving(PacketEvent event)voidPacketListener.onPacketReceiving(PacketEvent event)Invoked right before a received packet from a client is being processed.voidPacketAdapter.onPacketSending(PacketEvent event)voidPacketListener.onPacketSending(PacketEvent event)Invoked right before a packet is transmitted from the server to the client.voidPacketPostListener.onPostEvent(PacketEvent event)Invoked after a packet has been sent or received. -
Uses of PacketEvent in com.comphenix.protocol.injector
Methods in com.comphenix.protocol.injector with parameters of type PacketEventModifier and TypeMethodDescriptionvoidListenerInvoker.invokePacketRecieving(PacketEvent event)Invokes the given packet event for every registered listener.voidPacketFilterManager.invokePacketRecieving(PacketEvent event)voidSortedPacketListenerList.invokePacketRecieving(ErrorReporter reporter, PacketEvent event)Invokes the given packet event for every registered listener.voidSortedPacketListenerList.invokePacketRecieving(ErrorReporter reporter, PacketEvent event, ListenerPriority priorityFilter)Invokes the given packet event for every registered listener of the given priority.voidListenerInvoker.invokePacketSending(PacketEvent event)Invokes the given packet event for every registered listener.voidPacketFilterManager.invokePacketSending(PacketEvent event)voidSortedPacketListenerList.invokePacketSending(ErrorReporter reporter, PacketEvent event)Invokes the given packet event for every registered listener.voidSortedPacketListenerList.invokePacketSending(ErrorReporter reporter, PacketEvent event, ListenerPriority priorityFilter)Invokes the given packet event for every registered listener of the given priority.voidNetworkProcessor.invokePostEvent(PacketEvent event, NetworkMarker marker)Invoke the post listeners and packet transmission, if any.byte[]NetworkProcessor.processOutput(PacketEvent event, NetworkMarker marker, byte[] input)Process the serialized packet byte array with the given network marker. -
Uses of PacketEvent in com.comphenix.protocol.injector.netty
Methods in com.comphenix.protocol.injector.netty that return PacketEventModifier and TypeMethodDescriptionChannelListener.onPacketReceiving(Injector injector, Object packet, NetworkMarker marker)Invoked when a packet is being received from a client.ProtocolInjector.onPacketReceiving(Injector injector, Object packet, NetworkMarker marker)ChannelListener.onPacketSending(Injector injector, Object packet, NetworkMarker marker)Invoked when a packet is being sent to the client.ProtocolInjector.onPacketSending(Injector injector, Object packet, NetworkMarker marker) -
Uses of PacketEvent in com.comphenix.protocol.injector.packet
Methods in com.comphenix.protocol.injector.packet that return PacketEventModifier and TypeMethodDescriptionPacketInjector.packetRecieved(PacketContainer packet, org.bukkit.entity.Player client, byte[] buffered)Let the packet listeners process the given packet. -
Uses of PacketEvent in com.comphenix.protocol.injector.player
Methods in com.comphenix.protocol.injector.player that return PacketEventModifier and TypeMethodDescriptionPlayerInjectionHandler.handlePacketRecieved(PacketContainer packet, InputStream input, byte[] buffered)Invoked if this player injection handler can process received packets.