Interface AdventureDialog<I,BB extends DialogBodyBuilder<I>,IB extends DialogInputBuilder,T extends AdventureDialog<I,BB,IB,T>>

Type Parameters:
I - the type of the item for the item body
BB - the type of the dialog body builder
IB - the type of the dialog input builder
T - the type of the dialog itself, for method chaining
All Superinterfaces:
AdventureSupport, Dialog<I,BB,IB,T>
All Known Implementing Classes:
PaperConfirmationDialog, PaperDialog, PaperDialogListDialog, PaperMultiActionDialog, PaperNoticeDialog, PaperServerLinksDialog, PEConfirmationDialog, PEDialog, PEDialogListDialog, PEMultiActionDialog, PENoticeDialog, PEServerLinksDialog

public interface AdventureDialog<I,BB extends DialogBodyBuilder<I>,IB extends DialogInputBuilder,T extends AdventureDialog<I,BB,IB,T>> extends Dialog<I,BB,IB,T>, AdventureSupport
An extension of Dialog that provides additional methods for handling Component titles and external titles.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog

    Dialog.AfterAction
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    externalTitle(@Nullable String externalTitle)
    Set the external title of the dialog, which is used for displaying the dialog in a multi-dialog dialog
    externalTitle(@Nullable net.kyori.adventure.text.Component externalTitle)
    Set the external title of the dialog, which is used for displaying the dialog in a multi-dialog dialog
    default T
    title(String title)
    Set the title of the dialog
    title(net.kyori.adventure.text.Component title)
    Set the title of the dialog

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

    deserialize, getComponentDeserializer

    Methods inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog

    afterAction, body, body, canCloseWithEscape, input, input, opener, pause
  • Method Details

    • title

      T title(net.kyori.adventure.text.Component title)
      Set the title of the dialog
      Parameters:
      title - the title of the dialog
      Returns:
      the dialog itself for method chaining
    • title

      default T title(String title)
      Description copied from interface: Dialog
      Set the title of the dialog
      Specified by:
      title in interface Dialog<I,BB extends DialogBodyBuilder<I>,IB extends DialogInputBuilder,T extends AdventureDialog<I,BB,IB,T>>
      Parameters:
      title - the title of the dialog
      Returns:
      the dialog itself for method chaining
    • externalTitle

      T externalTitle(@Nullable @Nullable net.kyori.adventure.text.Component externalTitle)
      Set the external title of the dialog, which is used for displaying the dialog in a multi-dialog dialog
      Parameters:
      externalTitle - the external title of the dialog
      Returns:
      the dialog itself for method chaining
    • externalTitle

      default T externalTitle(@Nullable @Nullable String externalTitle)
      Description copied from interface: Dialog
      Set the external title of the dialog, which is used for displaying the dialog in a multi-dialog dialog
      Specified by:
      externalTitle in interface Dialog<I,BB extends DialogBodyBuilder<I>,IB extends DialogInputBuilder,T extends AdventureDialog<I,BB,IB,T>>
      Parameters:
      externalTitle - the external title of the dialog
      Returns:
      the dialog itself for method chaining