Interface PacketHandler<T extends Client<Connection<T>>>


  • public interface PacketHandler<T extends Client<Connection<T>>>
    This class is responsible to handler the incoming data. Converting it to a packet.
    • Method Detail

      • handlePacket

        ReadablePacket<T> handlePacket​(DataWrapper data,
                                       T client)
        Convert the data into a packet.
        Parameters:
        data - - the data to be converted.
        client - - the client who sends the data
        Returns:
        A Packet related to the data received.