Interface ClientReceiveMessageEvents.ModifyGame

Enclosing class:
ClientReceiveMessageEvents
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 ClientReceiveMessageEvents.ModifyGame
  • Method Summary

    Modifier and Type
    Method
    Description
    modifyReceivedGameMessage(Text message, boolean overlay)
    Called when the client receives a game message, which is any message sent by the server.
  • Method Details

    • modifyReceivedGameMessage

      Text modifyReceivedGameMessage(Text message, boolean overlay)
      Called when the client receives a game message, which is any message sent by the server. Is not called when game messages are blocked. Use ClientReceiveMessageEvents.GAME if not modifying the message.

      Overlay is whether the message will be displayed in the action bar. Use ClientReceiveMessageEvents.ALLOW_GAME to toggle overlay.

      Parameters:
      message - the message received from the server
      overlay - whether the message will be displayed in the action bar
      Returns:
      the modified message to display or the original message if the message is not modified