Interface PacketBinding<P extends Packet>

Type Parameters:
P - The packet type
All Known Subinterfaces:
FixedTransactionalPacketBinding<P,R>, HandlerPacketBinding<P>, TransactionalPacketBinding<P,R>

public interface PacketBinding<P extends Packet>
Represents a binding of a Packet type in a PacketChannel.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the opcode that is assigned to this binding.
    Gets the type of the Packet.
  • Method Details

    • opcode

      int opcode()
      Gets the opcode that is assigned to this binding.
      Returns:
      The opcode
    • packetType

      Class<P> packetType()
      Gets the type of the Packet.
      Returns:
      The packet type