Interface TextBody<T extends TextBody<T>>

Type Parameters:
T - the type of text body for method chaining
All Known Subinterfaces:
AdventureTextBody<T>
All Known Implementing Classes:
PaperTextBody, PETextBody, SpigotTextBody

public interface TextBody<T extends TextBody<T>>
Interface for building text bodies in a dialog.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    text(String text)
    Set the text for the body
    width(int width)
    Set the width of the text body
  • Field Details

  • Method Details

    • text

      T text(String text)
      Set the text for the body
      Parameters:
      text - the text to set
      Returns:
      the instance of the text body for method chaining
    • width

      T width(int width)
      Set the width of the text body
      Parameters:
      width - the width to set
      Returns:
      the instance of the text body for method chaining