Interface AdventureTextBody<T extends AdventureTextBody<T>>

Type Parameters:
T - the type of the body, for method chaining
All Superinterfaces:
AdventureSupport, io.github.projectunified.unidialog.core.body.TextBody<T>

public interface AdventureTextBody<T extends AdventureTextBody<T>> extends io.github.projectunified.unidialog.core.body.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)
     
    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)
      Specified by:
      text in interface io.github.projectunified.unidialog.core.body.TextBody<T extends AdventureTextBody<T>>