Interface IPacketListener

    • Method Detail

      • handle

        void handle​(INetworkChannel channel,
                    IPacket packet)
             throws java.lang.Exception
        Handles a new incoming packet message. The channel and the packet will not null
        Parameters:
        channel - the channel, from that the message was received
        packet - the received packet message, which should handle from the listener
        Throws:
        java.lang.Exception - catch the exception, if the handle throws one