Package | Description |
---|---|
com.comphenix.protocol |
Contains classes for retrieving the main
ProtocolMananger object. |
com.comphenix.protocol.events | |
com.comphenix.protocol.injector | |
com.comphenix.protocol.injector.packet | |
com.comphenix.protocol.injector.player |
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(Player sender,
PacketContainer packet)
Simulate recieving a certain packet from a given player.
|
void |
ProtocolManager.recieveClientPacket(Player sender,
PacketContainer packet,
boolean filters)
Simulate recieving a certain packet from a given player.
|
void |
PacketStream.recieveClientPacket(Player sender,
PacketContainer packet,
boolean filters)
Simulate recieving a certain packet from a given player.
|
void |
PacketStream.sendServerPacket(Player reciever,
PacketContainer packet)
Send a packet to the given player.
|
void |
ProtocolManager.sendServerPacket(Player reciever,
PacketContainer packet,
boolean filters)
Send a packet to the given player.
|
void |
PacketStream.sendServerPacket(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,
Player client)
Creates an event representing a client packet transmission.
|
static PacketEvent |
PacketEvent.fromServer(java.lang.Object source,
PacketContainer packet,
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(Player sender,
PacketContainer packet) |
void |
PacketFilterManager.recieveClientPacket(Player sender,
PacketContainer packet,
boolean filters) |
void |
PacketFilterManager.sendServerPacket(Player reciever,
PacketContainer packet) |
void |
PacketFilterManager.sendServerPacket(Player reciever,
PacketContainer packet,
boolean filters) |
Modifier and Type | Method and Description |
---|---|
PacketEvent |
PacketInjector.packetRecieved(PacketContainer packet,
Player client)
Let the packet listeners process the given packet.
|
Modifier and Type | Method and Description |
---|---|
void |
PlayerInjectionHandler.sendServerPacket(Player reciever,
PacketContainer packet,
boolean filters)
Send the given packet to the given reciever.
|