Interface PackHandler<T extends Packet>

  • Type Parameters:
    T - the packet type This is a functional interface whose functional method is handle(Packet)

    public interface PackHandler<T extends Packet>
    Represents a packet handler to define how to handle packet.
    • Method Detail

      • handle

        void handle​(T packet)
        Used to handle the packet
        Parameters:
        packet - the packet