Package | Description |
---|---|
com.comphenix.protocol |
Contains classes for retrieving the main ProtocolMananger object.
|
com.comphenix.protocol.events | |
com.comphenix.protocol.injector |
Modifier and Type | Method and Description |
---|---|
void |
PacketStream.recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet,
NetworkMarker marker,
boolean filters)
Simulate recieving a certain packet from a given player.
|
void |
PacketStream.sendServerPacket(org.bukkit.entity.Player receiver,
PacketContainer packet,
NetworkMarker marker,
boolean filters)
Send a packet to the given player.
|
Modifier and Type | Class and Description |
---|---|
static class |
NetworkMarker.EmptyBufferMarker |
Modifier and Type | Method and Description |
---|---|
NetworkMarker |
PacketEvent.getNetworkMarker()
Retrieve the object responsible for managing the serialized input and output of a packet.
|
static NetworkMarker |
NetworkMarker.getNetworkMarker(PacketEvent event)
Retrieve the network marker of a particular event without creating it.
|
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.fromServer(java.lang.Object source,
PacketContainer packet,
NetworkMarker marker,
org.bukkit.entity.Player recipient)
Creates an event representing a server packet transmission.
|
static byte[] |
NetworkMarker.getByteBuffer(NetworkMarker marker)
Retrieve the byte buffer stored in the given marker.
|
static boolean |
NetworkMarker.hasOutputHandlers(NetworkMarker marker)
Determine if the given marker has any output handlers.
|
void |
PacketEvent.setNetworkMarker(NetworkMarker networkMarker)
Update the network manager.
|
Modifier and Type | Method and Description |
---|---|
void |
DelayedPacketManager.recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet,
NetworkMarker marker,
boolean filters) |
void |
PacketFilterManager.recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet,
NetworkMarker marker,
boolean filters) |
void |
DelayedPacketManager.sendServerPacket(org.bukkit.entity.Player receiver,
PacketContainer packet,
NetworkMarker marker,
boolean filters) |
void |
PacketFilterManager.sendServerPacket(org.bukkit.entity.Player receiver,
PacketContainer packet,
NetworkMarker marker,
boolean filters) |