Interface ServerMessageEvents.GameMessage

Enclosing class:
ServerMessageEvents
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 ServerMessageEvents.GameMessage
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onGameMessage(MinecraftServer server, Text message, boolean overlay)
    Called when the server broadcasts a game message to all players.
  • Method Details

    • onGameMessage

      void onGameMessage(MinecraftServer server, Text message, boolean overlay)
      Called when the server broadcasts a game message to all players. Game messages include death messages, join/leave messages, and advancement messages. Is not called when game messages are blocked.
      Parameters:
      server - the server that sent the message
      message - the broadcast message
      overlay - true when the message is an overlay