Package | Description |
---|---|
com.comphenix.protocol |
Contains classes for retrieving the main ProtocolMananger object.
|
com.comphenix.protocol.events | |
com.comphenix.protocol.wrappers |
Modifier and Type | Method and Description |
---|---|
static PacketType.Protocol |
PacketType.Protocol.fromVanilla(java.lang.Enum<?> vanilla)
Retrieve the correct protocol enum from a given vanilla enum instance.
|
PacketType.Protocol |
PacketType.getProtocol()
Retrieve the protocol (the connection state) the packet type belongs.
|
static PacketType.Protocol |
PacketType.Handshake.getProtocol() |
static PacketType.Protocol |
PacketType.Play.getProtocol() |
static PacketType.Protocol |
PacketType.Status.getProtocol() |
static PacketType.Protocol |
PacketType.Login.getProtocol() |
static PacketType.Protocol |
PacketType.Legacy.getProtocol() |
static PacketType.Protocol |
PacketType.Protocol.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PacketType.Protocol[] |
PacketType.Protocol.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.fromCurrent(PacketType.Protocol protocol,
PacketType.Sender sender,
int packetId,
int legacyId)
Retrieve a packet type from a protocol, sender and packet ID.
|
static boolean |
PacketType.hasCurrent(PacketType.Protocol protocol,
PacketType.Sender sender,
int packetId)
Determine if the given packet exists.
|
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 |
---|---|
StructureModifier<PacketType.Protocol> |
PacketContainer.getProtocols()
Retrieve a read/write structure for the Protocol enum in 1.7.2.
|
Modifier and Type | Method and Description |
---|---|
static EquivalentConverter<PacketType.Protocol> |
EnumWrappers.getProtocolConverter() |