Interface DialogListDialog<I,BB extends DialogBodyBuilder<I>,IB extends DialogInputBuilder,D extends Dialog<I,BB,IB,?>,AB extends DialogActionBuilder<D,AB>,T extends DialogListDialog<I,BB,IB,D,AB,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
D - the type of the dialog contained in the list
AB - the type of the dialog action builder
T - the type of the dialog itself, for method chaining
All Superinterfaces:
Dialog<I,BB,IB,T>
All Known Implementing Classes:
PaperDialogListDialog, PEDialogListDialog, SpigotDialogListDialog

public interface DialogListDialog<I,BB extends DialogBodyBuilder<I>,IB extends DialogInputBuilder,D extends Dialog<I,BB,IB,?>,AB extends DialogActionBuilder<D,AB>,T extends DialogListDialog<I,BB,IB,D,AB,T>> extends Dialog<I,BB,IB,T>
Interface representing a dialog that contains a list of other dialogs.
  • Field Details

  • Method Details

    • dialog

      T dialog(D dialog)
      Add a dialog to the list of dialogs in this dialog
      Parameters:
      dialog - the dialog to add
      Returns:
      the dialog itself for method chaining
    • dialog

      T dialog(String namespace, String dialogId)
      Add a dialog to the list of dialogs in this dialog
      Parameters:
      namespace - the namespace of the dialog
      dialogId - the ID of the dialog
      Returns:
      the dialog itself for method chaining
    • dialog

      T dialog(DialogOpener dialogOpener)
      Add a dialog to the list of dialogs in this dialog
      Parameters:
      dialogOpener - the dialog opener that will open the dialog
      Returns:
      the dialog itself for method chaining
    • exitAction

      T exitAction(@Nullable @Nullable Consumer<AB> action)
      Set the action to be performed when exiting the dialog
      Parameters:
      action - the action to be performed when exiting the dialog
      Returns:
      the dialog itself for method chaining
    • columns

      T columns(int columns)
      Set the number of columns in the dialog
      Parameters:
      columns - the number of columns in the dialog
      Returns:
      the dialog itself for method chaining
    • buttonWidth

      T buttonWidth(int buttonWidth)
      Set the width of the buttons in the dialog
      Parameters:
      buttonWidth - the width of the buttons in the dialog
      Returns:
      the dialog itself for method chaining
    • dialog

      default <B extends D> T dialog(Collection<B> dialogs)
      Add multiple dialogs to the list of dialogs in this dialog
      Parameters:
      dialogs - the collection of dialogs to add
      Returns:
      the dialog itself for method chaining