Class PaperTextBody

java.lang.Object
io.github.projectunified.unidialog.paper.body.PaperTextBody
All Implemented Interfaces:
io.github.projectunified.unidialog.adventure.body.AdventureTextBody<PaperTextBody>, io.github.projectunified.unidialog.adventure.support.AdventureSupport, io.github.projectunified.unidialog.core.body.TextBody<PaperTextBody>, PaperDialogBody

public class PaperTextBody extends Object implements io.github.projectunified.unidialog.adventure.body.AdventureTextBody<PaperTextBody>, PaperDialogBody
  • Field Summary

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

    DEFAULT_WIDTH
  • Constructor Summary

    Constructors
    Constructor
    Description
    PaperTextBody(Function<String,net.kyori.adventure.text.Component> componentDeserializer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Function<String,net.kyori.adventure.text.Component>
     
    io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody
     
    text(net.kyori.adventure.text.Component text)
     
    width(int width)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    deserialize

    Methods inherited from interface io.github.projectunified.unidialog.adventure.body.AdventureTextBody

    text
  • Constructor Details

    • PaperTextBody

      public PaperTextBody(Function<String,net.kyori.adventure.text.Component> componentDeserializer)
  • Method Details

    • getComponentDeserializer

      public Function<String,net.kyori.adventure.text.Component> getComponentDeserializer()
      Specified by:
      getComponentDeserializer in interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
    • text

      public PaperTextBody text(net.kyori.adventure.text.Component text)
      Specified by:
      text in interface io.github.projectunified.unidialog.adventure.body.AdventureTextBody<PaperTextBody>
    • width

      public PaperTextBody width(int width)
      Specified by:
      width in interface io.github.projectunified.unidialog.core.body.TextBody<PaperTextBody>
    • getDialogBody

      public io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody getDialogBody()
      Specified by:
      getDialogBody in interface PaperDialogBody