Interface IMessageable

All Known Subinterfaces:
ICommandSender, IPlayer, IServer
All Known Implementing Classes:
IMessageable.BlackHoleMessageable, OfflinePlayerSpigot, PlayerSpigot, SpigotServer

public interface IMessageable
Represents objects that can receive messages.
  • Field Details

  • Method Details

    • sendMessage

      void sendMessage(Text text)
      Sends a message to this object.
      Parameters:
      text - The message to send. This may or may not contain formatting.
    • sendMessage

      default void sendMessage(ITextFactory textFactory, TextType textType, String message)
      Sends a message to this object.
      Parameters:
      textFactory - The ITextFactory to use for creating the Text object.
      textType - The TextType to use for the message to send.
      message - The message to send.
    • sendError

      default void sendError(ITextFactory textFactory, String message)
      Sends an error message to this object.
      Parameters:
      textFactory - The ITextFactory to use for creating the Text object.
      message - The error message to send.
    • sendSuccess

      default void sendSuccess(ITextFactory textFactory, String message)
      Sends a success message to this object.
      Parameters:
      textFactory - The ITextFactory to use for creating the Text object.
      message - The success message to send.
    • sendInfo

      default void sendInfo(ITextFactory textFactory, String message)
      Sends a info message to this object.
      Parameters:
      textFactory - The ITextFactory to use for creating the Text object.
      message - The info message to send.