Interface PacketType

    • Method Detail

      • getId

        int getId()
        Returns the packet id for the implemented protocol.
        Returns:
        packet id for the implemented protocol
      • getName

        java.lang.String getName()
        Returns the name of the packet, to be consistent over multiple versions.
        Returns:
        name of the packet
      • direction

        Direction direction()
        Clientbound or serverbound direction.
        Returns:
        direction
      • state

        default State state()
        Returns the protocol state the packet belongs to.
        Returns:
        protocol state