Class BungeeDialogListDialog<O extends BungeeDialogOpener>
java.lang.Object
io.github.projectunified.unidialog.bungeecord.dialog.BungeeDialog<O,BungeeDialogListDialog<O>>
io.github.projectunified.unidialog.bungeecord.dialog.BungeeDialogListDialog<O>
- Type Parameters:
O- the type of the dialog opener
- All Implemented Interfaces:
Dialog<Object,,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialogListDialog<O>> DialogListDialog<Object,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialog<?, ?>, BungeeDialogActionBuilder, BungeeDialogListDialog<O>>
public class BungeeDialogListDialog<O extends BungeeDialogOpener>
extends BungeeDialog<O,BungeeDialogListDialog<O>>
implements DialogListDialog<Object,BungeeDialogBodyBuilder,BungeeDialogInputBuilder,BungeeDialog<?,?>,BungeeDialogActionBuilder,BungeeDialogListDialog<O>>
The Bungee implementation of the dialog list 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.DialogListDialog
DEFAULT_BUTTON_WIDTH, DEFAULT_COLUMNS -
Constructor Summary
ConstructorsConstructorDescriptionBungeeDialogListDialog(String defaultNamespace, Function<net.md_5.bungee.api.dialog.Dialog, O> openerFunction) Create a new dialog list dialog -
Method Summary
Modifier and TypeMethodDescriptionbuttonWidth(int buttonWidth) Set the width of the buttons in the dialogcolumns(int columns) Set the number of columns in 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 basedialog(BungeeDialog<?, ?> dialog) Add a dialog to the list of dialogs in this dialogdialog(DialogOpener dialogOpener) Add a dialog to the list of dialogs in this dialogAdd a dialog to the list of dialogs in this dialogexitAction(@Nullable Consumer<BungeeDialogActionBuilder> action) Set the action to be performed when exiting 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.DialogListDialog
dialog
-
Constructor Details
-
BungeeDialogListDialog
public BungeeDialogListDialog(String defaultNamespace, Function<net.md_5.bungee.api.dialog.Dialog, O> openerFunction) Create a new dialog list dialog- Parameters:
defaultNamespace- the default namespace for the dialog actionsopenerFunction- the function to create the dialog opener from the Bungee dialog
-
-
Method Details
-
dialog
Description copied from interface:DialogListDialogAdd a dialog to the list of dialogs in this dialog- Specified by:
dialogin interfaceDialogListDialog<Object,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialog<?, ?>, BungeeDialogActionBuilder, BungeeDialogListDialog<O extends BungeeDialogOpener>> - Parameters:
dialog- the dialog to add- Returns:
- the dialog itself for method chaining
-
dialog
Description copied from interface:DialogListDialogAdd a dialog to the list of dialogs in this dialog- Specified by:
dialogin interfaceDialogListDialog<Object,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialog<?, ?>, BungeeDialogActionBuilder, BungeeDialogListDialog<O extends BungeeDialogOpener>> - Parameters:
namespace- the namespace of the dialogdialogId- the ID of the dialog- Returns:
- the dialog itself for method chaining
-
dialog
Description copied from interface:DialogListDialogAdd a dialog to the list of dialogs in this dialog- Specified by:
dialogin interfaceDialogListDialog<Object,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialog<?, ?>, BungeeDialogActionBuilder, BungeeDialogListDialog<O extends BungeeDialogOpener>> - Parameters:
dialogOpener- the dialog opener that will open the dialog- Returns:
- the dialog itself for method chaining
-
exitAction
public BungeeDialogListDialog<O> exitAction(@Nullable @Nullable Consumer<BungeeDialogActionBuilder> action) Description copied from interface:DialogListDialogSet the action to be performed when exiting the dialog- Specified by:
exitActionin interfaceDialogListDialog<Object,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialog<?, ?>, BungeeDialogActionBuilder, BungeeDialogListDialog<O extends BungeeDialogOpener>> - Parameters:
action- the action to be performed when exiting the dialog- Returns:
- the dialog itself for method chaining
-
columns
Description copied from interface:DialogListDialogSet the number of columns in the dialog- Specified by:
columnsin interfaceDialogListDialog<Object,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialog<?, ?>, BungeeDialogActionBuilder, BungeeDialogListDialog<O extends BungeeDialogOpener>> - Parameters:
columns- the number of columns in the dialog- Returns:
- the dialog itself for method chaining
-
buttonWidth
Description copied from interface:DialogListDialogSet the width of the buttons in the dialog- Specified by:
buttonWidthin interfaceDialogListDialog<Object,BungeeDialogBodyBuilder, BungeeDialogInputBuilder, BungeeDialog<?, ?>, BungeeDialogActionBuilder, BungeeDialogListDialog<O extends BungeeDialogOpener>> - Parameters:
buttonWidth- the width of the buttons in 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,BungeeDialogListDialog<O extends BungeeDialogOpener>> - Parameters:
dialogBase- the dialog base containing the shared dialog data- Returns:
- the constructed Bungee dialog
-