Interface AdventureTextBody<T extends AdventureTextBody<T>>

Type Parameters:
T - the type of the body, for method chaining
All Superinterfaces:
AdventureSupport, TextBody<T>
All Known Implementing Classes:
PaperTextBody, PETextBody

public interface AdventureTextBody<T extends AdventureTextBody<T>> extends TextBody<T>, AdventureSupport
An extension of TextBody that provides additional methods for handling Component text.
  • Field Summary

    Fields inherited from interface io.github.projectunified.unidialog.core.body.TextBody

    DEFAULT_WIDTH
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    text(String text)
    Set the text for the body
    text(net.kyori.adventure.text.Component text)
    Set the text for the body

    Methods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport

    deserialize, getComponentDeserializer

    Methods inherited from interface io.github.projectunified.unidialog.core.body.TextBody

    width
  • Method Details

    • text

      T text(net.kyori.adventure.text.Component text)
      Set the text for the body
      Parameters:
      text - the text to set
      Returns:
      the instance of the text body for method chaining
    • text

      default T text(String text)
      Description copied from interface: TextBody
      Set the text for the body
      Specified by:
      text in interface TextBody<T extends AdventureTextBody<T>>
      Parameters:
      text - the text to set
      Returns:
      the instance of the text body for method chaining