Interface MessageHandler

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 MessageHandler
按类型分发的消息处理器(函数式接口)。在中间件后台线程触发,绝不在 MC 主线程。
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    处理一条收到的消息。
  • Method Details

    • handle

      void handle(IncomingMessage message)
      处理一条收到的消息。