Interface MessagePiece


public interface MessagePiece
This interface is used to reference the "message pieces" implemented by nChat.
  • Method Details

    • key

      String key()
      Gets the key of this message piece.
      Returns:
      the key of this piece of the message without {}
    • component

      Component component()
      Gets the Component of this message piece.
    • editComponent

      MessagePiece editComponent(Component component)
      Edits the Component of this message piece.
      Parameters:
      component - the new component to be used
      Returns:
      the instance of this message piece
    • editText

      MessagePiece editText(String content)
      Modifies the Component content of this message piece.
      Parameters:
      content - the new content to be used
      Returns:
      the instance of this message piece
    • clone

      MessagePiece clone()
      Creates a clone of the instance of this message piece.
      Returns:
      another instance of this message piece