Package | Description |
---|---|
com.comphenix.protocol |
Contains classes for retrieving the main ProtocolMananger object.
|
com.comphenix.protocol.events |
Modifier and Type | Method and Description |
---|---|
PacketType.Sender |
PacketType.getSender()
Retrieve which sender will transmit packets of this type.
|
static PacketType.Sender |
PacketType.Handshake.Client.getSender() |
static PacketType.Sender |
PacketType.Handshake.Server.getSender() |
static PacketType.Sender |
PacketType.Play.Server.getSender() |
static PacketType.Sender |
PacketType.Play.Client.getSender() |
static PacketType.Sender |
PacketType.Status.Server.getSender() |
static PacketType.Sender |
PacketType.Status.Client.getSender() |
static PacketType.Sender |
PacketType.Login.Server.getSender() |
static PacketType.Sender |
PacketType.Login.Client.getSender() |
static PacketType.Sender |
PacketType.Legacy.Server.getSender() |
static PacketType.Sender |
PacketType.Legacy.Client.getSender() |
static PacketType.Sender |
PacketType.Sender.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PacketType.Sender[] |
PacketType.Sender.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static PacketType |
PacketType.findCurrent(PacketType.Protocol protocol,
PacketType.Sender sender,
int packetId)
Retrieve a packet type from a protocol, sender and packet ID.
|
static PacketType |
PacketType.findLegacy(int packetId,
PacketType.Sender preference)
Retrieve a packet type from a legacy (1.6.4 and below) packet ID.
|
static PacketType |
PacketType.fromCurrent(PacketType.Protocol protocol,
PacketType.Sender sender,
int packetId,
int legacyId)
Retrieve a packet type from a protocol, sender and packet ID.
|
static PacketType |
PacketType.fromLegacy(int id,
PacketType.Sender sender)
Retrieve a packet type from a legacy ID.
|
static boolean |
PacketType.hasCurrent(PacketType.Protocol protocol,
PacketType.Sender sender,
int packetId)
Determine if the given packet exists.
|
static PacketType |
PacketType.newLegacy(PacketType.Sender sender,
int legacyId)
Construct a legacy packet type.
|
Constructor and Description |
---|
PacketType(PacketType.Protocol protocol,
PacketType.Sender sender,
int currentId,
int legacyId)
Construct a new packet type.
|
PacketType(PacketType.Protocol protocol,
PacketType.Sender sender,
int currentId,
int legacyId,
MinecraftVersion version)
Construct a new packet type.
|
Modifier and Type | Method and Description |
---|---|
PacketType.Sender |
ConnectionSide.getSender()
Retrieve the sender of this connection side.
|