Interface PacketHandler

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface PacketHandler
    • Method Detail

      • handle

        void handle​(PacketWrapper wrapper)
             throws java.lang.Exception
        Handles a packet.
        Parameters:
        wrapper - packet wrapper
        Throws:
        java.lang.Exception - if an error occurs during the packet handling