Package | Description |
---|---|
com.comphenix.protocol | |
com.comphenix.protocol.events | |
com.comphenix.protocol.injector |
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 |
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 |
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 |
PacketEvent.getPacket()
Retrieves the packet that will be sent to the player.
|
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.
|
Modifier and Type | Method and Description |
---|---|
PacketContainer |
PacketFilterManager.createPacket(int id) |
PacketContainer |
PacketFilterManager.createPacket(int id,
boolean forceDefaults) |
PacketContainer |
PacketConstructor.createPacket(java.lang.Object... values)
Construct a packet using the special builtin Minecraft constructors.
|
Modifier and Type | Method and Description |
---|---|
void |
PacketFilterManager.recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet) |
void |
PacketFilterManager.recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet,
boolean filters) |
void |
PacketFilterManager.sendServerPacket(org.bukkit.entity.Player reciever,
PacketContainer packet) |
void |
PacketFilterManager.sendServerPacket(org.bukkit.entity.Player reciever,
PacketContainer packet,
boolean filters) |