Interface IConfigurationPayloadHandler<T extends CustomPacketPayload>

Type Parameters:
T - The type of payload.
All Known Implementing Classes:
ConfigurationPayloadHandler, ConfigurationRegistration, ModMismatchTest
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 IConfigurationPayloadHandler<T extends CustomPacketPayload>
Callback for handling custom packets.
  • Method Details

    • handle

      void handle(T payload, ConfigurationPayloadContext context)
      Invoked to handle the given payload in the given context.
      Parameters:
      payload - The payload.
      context - The context.
    • noop

      static <Z extends CustomPacketPayload> IConfigurationPayloadHandler<Z> noop()
      Creates a replyHandler that does nothing.
      Type Parameters:
      Z - The type of payload.
      Returns:
      The replyHandler.