java.lang.Object
io.github.projectunified.unidialog.bungeecord.body.BungeeTextBody
All Implemented Interfaces:
BungeeDialogBody, TextBody<BungeeTextBody>

public class BungeeTextBody extends Object implements TextBody<BungeeTextBody>, BungeeDialogBody
  • Constructor Details

    • BungeeTextBody

      public BungeeTextBody()
  • Method Details

    • text

      public BungeeTextBody text(net.md_5.bungee.api.chat.BaseComponent text)
      Set the text for the body
      Parameters:
      text - the text to set
      Returns:
      the instance of the text body for method chaining
    • text

      public BungeeTextBody text(String text)
      Description copied from interface: TextBody
      Set the text for the body
      Specified by:
      text in interface TextBody<BungeeTextBody>
      Parameters:
      text - the text to set
      Returns:
      the instance of the text body for method chaining
    • width

      public BungeeTextBody width(int width)
      Description copied from interface: TextBody
      Set the width of the text body
      Specified by:
      width in interface TextBody<BungeeTextBody>
      Parameters:
      width - the width to set
      Returns:
      the instance of the text body for method chaining
    • getDialogBody

      public net.md_5.bungee.api.dialog.body.DialogBody getDialogBody()
      Specified by:
      getDialogBody in interface BungeeDialogBody