Interface MultiActionDialog<I,BB extends DialogBodyBuilder<I>,IB extends DialogInputBuilder,D extends Dialog<I,BB,IB,?>,AB extends DialogActionBuilder<D,AB>,T extends MultiActionDialog<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 base dialog
AB - the type of the dialog action builder
T - the type of the multi-action dialog itself, for method chaining
All Superinterfaces:
Dialog<I,BB,IB,T>
All Known Implementing Classes:
PaperMultiActionDialog, PEMultiActionDialog, SpigotMultiActionDialog

public interface MultiActionDialog<I,BB extends DialogBodyBuilder<I>,IB extends DialogInputBuilder,D extends Dialog<I,BB,IB,?>,AB extends DialogActionBuilder<D,AB>,T extends MultiActionDialog<I,BB,IB,D,AB,T>> extends Dialog<I,BB,IB,T>
Interface representing a multi-action dialog.
  • Field Details

  • Method Details

    • columns

      T columns(int columns)
      Set the number of columns for the dialog
      Parameters:
      columns - the number of columns to set
      Returns:
      the dialog itself for method chaining
    • action

      T action(Consumer<AB> action)
      Add an action to the dialog
      Parameters:
      action - the action to be performed
      Returns:
      the dialog itself for method chaining
    • exitAction

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

      default T action(Collection<Consumer<AB>> actions)
      Add multiple actions to the dialog
      Parameters:
      actions - a collection of actions to be performed
      Returns:
      the dialog itself for method chaining