Interface NetherNetSignaling.SignalHandler

Enclosing interface:
NetherNetSignaling
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 static interface NetherNetSignaling.SignalHandler
Functional interface for handling incoming signals.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onSignal(String signal)
    Called when a signal is received for the registered connection ID, on whichever thread the signaling reads from.
  • Method Details

    • onSignal

      void onSignal(String signal)
      Called when a signal is received for the registered connection ID, on whichever thread the signaling reads from. The channels move themselves back onto their event loop.
      Parameters:
      signal - The raw signal payload.