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 bodyBB
- the type of the dialog body builderIB
- the type of the dialog input builderD
- the type of the base dialogAB
- the type of the dialog action builderT
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
Dialog.AfterAction
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault T
action
(Collection<Consumer<AB>> actions) Add multiple actions to the dialogAdd an action to the dialogcolumns
(int columns) Set the number of columns for the dialogexitAction
(@Nullable Consumer<AB> action) Set the exit action for the dialogMethods inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
afterAction, body, body, canCloseWithEscape, externalTitle, input, input, opener, pause, title
-
Field Details
-
DEFAULT_COLUMNS
static final int DEFAULT_COLUMNS- See Also:
-
-
Method Details
-
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
Add an action to the dialog- Parameters:
action
- the action to be performed- Returns:
- the dialog itself for method chaining
-
exitAction
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
Add multiple actions to the dialog- Parameters:
actions
- a collection of actions to be performed- Returns:
- the dialog itself for method chaining
-