Class BungeeMultiActionDialog<O extends BungeeDialogOpener>
java.lang.Object
io.github.projectunified.unidialog.bungeecord.dialog.BungeeDialog<O,BungeeMultiActionDialog<O>>
io.github.projectunified.unidialog.bungeecord.dialog.BungeeMultiActionDialog<O>
- Type Parameters:
O- the type of the dialog opener
- All Implemented Interfaces:
Dialog<Object,,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeMultiActionDialog<O>> MultiActionDialog<Object,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialog<?, ?>, BungeeDialogActionBuilder, BungeeMultiActionDialog<O>>
public class BungeeMultiActionDialog<O extends BungeeDialogOpener>
extends BungeeDialog<O,BungeeMultiActionDialog<O>>
implements MultiActionDialog<Object,BungeeDialogBodyBuilder,BungeeDialogInputBuilder,BungeeDialog<?,?>,BungeeDialogActionBuilder,BungeeMultiActionDialog<O>>
The Bungee implementation of the multi action dialog
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
Dialog.AfterAction -
Field Summary
Fields inherited from interface io.github.projectunified.unidialog.core.dialog.MultiActionDialog
DEFAULT_COLUMNS -
Constructor Summary
ConstructorsConstructorDescriptionBungeeMultiActionDialog(String defaultNamespace, Function<net.md_5.bungee.api.dialog.Dialog, O> openerFunction) Create a new multi action dialog -
Method Summary
Modifier and TypeMethodDescriptionaction(Consumer<BungeeDialogActionBuilder> action) Add an action to the dialogcolumns(int columns) Set the number of columns for the dialogprotected net.md_5.bungee.api.dialog.DialogconstructDialog(net.md_5.bungee.api.dialog.DialogBase dialogBase) Construct the Bungee dialog from the given dialog baseexitAction(@Nullable Consumer<BungeeDialogActionBuilder> action) Set the exit action for the dialogMethods inherited from class io.github.projectunified.unidialog.bungeecord.dialog.BungeeDialog
afterAction, body, canCloseWithEscape, externalTitle, externalTitle, getAction, getDialog, input, opener, pause, title, titleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
afterAction, body, body, canCloseWithEscape, externalTitle, input, input, opener, pause, titleMethods inherited from interface io.github.projectunified.unidialog.core.dialog.MultiActionDialog
action
-
Constructor Details
-
BungeeMultiActionDialog
public BungeeMultiActionDialog(String defaultNamespace, Function<net.md_5.bungee.api.dialog.Dialog, O> openerFunction) Create a new multi action dialog- Parameters:
defaultNamespace- the default namespace for the dialog actionsopenerFunction- the function to create the dialog opener from the Bungee dialog
-
-
Method Details
-
columns
Description copied from interface:MultiActionDialogSet the number of columns for the dialog- Specified by:
columnsin interfaceMultiActionDialog<Object,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialog<?, ?>, BungeeDialogActionBuilder, BungeeMultiActionDialog<O extends BungeeDialogOpener>> - Parameters:
columns- the number of columns to set- Returns:
- the dialog itself for method chaining
-
action
Description copied from interface:MultiActionDialogAdd an action to the dialog- Specified by:
actionin interfaceMultiActionDialog<Object,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialog<?, ?>, BungeeDialogActionBuilder, BungeeMultiActionDialog<O extends BungeeDialogOpener>> - Parameters:
action- the action to be performed- Returns:
- the dialog itself for method chaining
-
exitAction
public BungeeMultiActionDialog<O> exitAction(@Nullable @Nullable Consumer<BungeeDialogActionBuilder> action) Description copied from interface:MultiActionDialogSet the exit action for the dialog- Specified by:
exitActionin interfaceMultiActionDialog<Object,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialog<?, ?>, BungeeDialogActionBuilder, BungeeMultiActionDialog<O extends BungeeDialogOpener>> - Parameters:
action- the action to be performed when exiting the dialog- Returns:
- the dialog itself for method chaining
-
constructDialog
protected net.md_5.bungee.api.dialog.Dialog constructDialog(net.md_5.bungee.api.dialog.DialogBase dialogBase) Description copied from class:BungeeDialogConstruct the Bungee dialog from the given dialog base- Specified by:
constructDialogin classBungeeDialog<O extends BungeeDialogOpener,BungeeMultiActionDialog<O extends BungeeDialogOpener>> - Parameters:
dialogBase- the dialog base containing the shared dialog data- Returns:
- the constructed Bungee dialog
-