Package | Description |
---|---|
com.comphenix.protocol.events | |
com.comphenix.protocol.injector |
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.
|
Modifier and Type | Method and Description |
---|---|
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 |
ConcurrentListenerMultimap.invokePacketRecieving(java.util.logging.Logger logger,
PacketEvent event)
Invokes the given packet event for every registered listener.
|
void |
PacketFilterManager.invokePacketRecieving(PacketEvent event)
Invokes the given packet event for every registered listener.
|
void |
ConcurrentListenerMultimap.invokePacketSending(java.util.logging.Logger logger,
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.
|