Class SpigotTextBody

java.lang.Object
io.github.projectunified.unidialog.spigot.body.SpigotTextBody
All Implemented Interfaces:
TextBody<SpigotTextBody>, SpigotDialogBody

public class SpigotTextBody extends Object implements TextBody<SpigotTextBody>, SpigotDialogBody
  • Constructor Details

    • SpigotTextBody

      public SpigotTextBody()
  • Method Details

    • text

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

      public SpigotTextBody width(int width)
      Description copied from interface: TextBody
      Set the width of the text body
      Specified by:
      width in interface TextBody<SpigotTextBody>
      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 SpigotDialogBody