Class SpigotDialogListDialog
java.lang.Object
io.github.projectunified.unidialog.spigot.dialog.SpigotDialog<SpigotDialogListDialog>
io.github.projectunified.unidialog.spigot.dialog.SpigotDialogListDialog
- All Implemented Interfaces:
Dialog<org.bukkit.inventory.ItemStack,
,SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotDialogListDialog> DialogListDialog<org.bukkit.inventory.ItemStack,
SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotDialog<?>, SpigotDialogActionBuilder, SpigotDialogListDialog>
public class SpigotDialogListDialog
extends SpigotDialog<SpigotDialogListDialog>
implements DialogListDialog<org.bukkit.inventory.ItemStack,SpigotDialogBodyBuilder,SpigotDialogInputBuilder,SpigotDialog<?>,SpigotDialogActionBuilder,SpigotDialogListDialog>
-
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
Constructors -
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.Dialog
constructDialog
(net.md_5.bungee.api.dialog.DialogBase dialogBase) dialog
(DialogOpener dialogOpener) Add a dialog to the list of dialogs in this dialogdialog
(SpigotDialog<?> dialog) Add a dialog to the list of dialogs in this dialogAdd a dialog to the list of dialogs in this dialogexitAction
(@Nullable Consumer<SpigotDialogActionBuilder> action) Set the action to be performed when exiting the dialogMethods inherited from class io.github.projectunified.unidialog.spigot.dialog.SpigotDialog
afterAction, body, canCloseWithEscape, externalTitle, externalTitle, getAction, getDialog, input, opener, pause, title, title
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
afterAction, body, body, canCloseWithEscape, externalTitle, input, input, opener, pause, title
Methods inherited from interface io.github.projectunified.unidialog.core.dialog.DialogListDialog
dialog
-
Constructor Details
-
SpigotDialogListDialog
-
-
Method Details
-
dialog
Description copied from interface:DialogListDialog
Add a dialog to the list of dialogs in this dialog- Specified by:
dialog
in interfaceDialogListDialog<org.bukkit.inventory.ItemStack,
SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotDialog<?>, SpigotDialogActionBuilder, SpigotDialogListDialog> - Parameters:
dialog
- the dialog to add- Returns:
- the dialog itself for method chaining
-
dialog
Description copied from interface:DialogListDialog
Add a dialog to the list of dialogs in this dialog- Specified by:
dialog
in interfaceDialogListDialog<org.bukkit.inventory.ItemStack,
SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotDialog<?>, SpigotDialogActionBuilder, SpigotDialogListDialog> - Parameters:
namespace
- the namespace of the dialogdialogId
- the ID of the dialog- Returns:
- the dialog itself for method chaining
-
dialog
Description copied from interface:DialogListDialog
Add a dialog to the list of dialogs in this dialog- Specified by:
dialog
in interfaceDialogListDialog<org.bukkit.inventory.ItemStack,
SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotDialog<?>, SpigotDialogActionBuilder, SpigotDialogListDialog> - Parameters:
dialogOpener
- the dialog opener that will open the dialog- Returns:
- the dialog itself for method chaining
-
exitAction
public SpigotDialogListDialog exitAction(@Nullable @Nullable Consumer<SpigotDialogActionBuilder> action) Description copied from interface:DialogListDialog
Set the action to be performed when exiting the dialog- Specified by:
exitAction
in interfaceDialogListDialog<org.bukkit.inventory.ItemStack,
SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotDialog<?>, SpigotDialogActionBuilder, SpigotDialogListDialog> - Parameters:
action
- the action to be performed when exiting the dialog- Returns:
- the dialog itself for method chaining
-
columns
Description copied from interface:DialogListDialog
Set the number of columns in the dialog- Specified by:
columns
in interfaceDialogListDialog<org.bukkit.inventory.ItemStack,
SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotDialog<?>, SpigotDialogActionBuilder, SpigotDialogListDialog> - Parameters:
columns
- the number of columns in the dialog- Returns:
- the dialog itself for method chaining
-
buttonWidth
Description copied from interface:DialogListDialog
Set the width of the buttons in the dialog- Specified by:
buttonWidth
in interfaceDialogListDialog<org.bukkit.inventory.ItemStack,
SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotDialog<?>, SpigotDialogActionBuilder, SpigotDialogListDialog> - 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) - Specified by:
constructDialog
in classSpigotDialog<SpigotDialogListDialog>
-