Package | Description |
---|---|
com.comphenix.protocol |
Contains classes for retrieving the main
ProtocolMananger object. |
com.comphenix.protocol.events |
Modifier and Type | Method and Description |
---|---|
PacketContainer |
ProtocolManager.createPacket(int id)
Constructs a new encapsulated Minecraft packet with the given ID.
|
PacketContainer |
ProtocolManager.createPacket(int id,
boolean forceDefaults)
Constructs a new encapsulated Minecraft packet with the given ID.
|
Modifier and Type | Method and Description |
---|---|
void |
PacketStream.recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet)
Simulate recieving a certain packet from a given player.
|
void |
ProtocolManager.recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet,
boolean filters)
Simulate recieving a certain packet from a given player.
|
void |
PacketStream.recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet,
boolean filters)
Simulate recieving a certain packet from a given player.
|
void |
PacketStream.sendServerPacket(org.bukkit.entity.Player reciever,
PacketContainer packet)
Send a packet to the given player.
|
void |
ProtocolManager.sendServerPacket(org.bukkit.entity.Player reciever,
PacketContainer packet,
boolean filters)
Send a packet to the given player.
|
void |
PacketStream.sendServerPacket(org.bukkit.entity.Player reciever,
PacketContainer packet,
boolean filters)
Send a packet to the given player.
|
Modifier and Type | Method and Description |
---|---|
PacketContainer |
PacketContainer.deepClone()
Create a deep copy of the current packet.
|
PacketContainer |
PacketEvent.getPacket()
Retrieves the packet that will be sent to the player.
|
PacketContainer |
PacketContainer.shallowClone()
Create a shallow copy of the current 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.
|
void |
PacketEvent.setPacket(PacketContainer packet)
Replace the packet that will be sent to the player.
|