Class PaperDialogListDialog
java.lang.Object
io.github.projectunified.unidialog.paper.dialog.PaperDialog<PaperDialogListDialog>
io.github.projectunified.unidialog.paper.dialog.PaperDialogListDialog
- All Implemented Interfaces:
AdventureDialog<org.bukkit.inventory.ItemStack,,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialogListDialog> AdventureSupport,Dialog<org.bukkit.inventory.ItemStack,,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialogListDialog> DialogListDialog<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperDialogListDialog>
public class PaperDialogListDialog
extends PaperDialog<PaperDialogListDialog>
implements DialogListDialog<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder,PaperDialogInputBuilder,PaperDialog<?>,PaperDialogActionBuilder,PaperDialogListDialog>
-
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
ConstructorsConstructorDescriptionPaperDialogListDialog(String defaultNamespace, Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
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 dialogdialog(DialogOpener dialogOpener) Add a dialog to the list of dialogs in this dialogdialog(PaperDialog<?> dialog) Add a dialog to the list of dialogs in this dialogAdd a dialog to the list of dialogs in this dialogexitAction(@Nullable Consumer<PaperDialogActionBuilder> action) Set the action to be performed when exiting the dialogprotected io.papermc.paper.registry.data.dialog.type.DialogTypeMethods inherited from class io.github.projectunified.unidialog.paper.dialog.PaperDialog
afterAction, body, canCloseWithEscape, externalTitle, getAction, getComponentDeserializer, getDialog, getDialogBuilder, input, opener, pause, register, register, register, register, register, register, 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.adventure.dialog.AdventureDialog
externalTitle, titleMethods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserializeMethods inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
afterAction, body, body, canCloseWithEscape, input, input, opener, pauseMethods inherited from interface io.github.projectunified.unidialog.core.dialog.DialogListDialog
dialog
-
Constructor Details
-
PaperDialogListDialog
-
-
Method Details
-
dialog
Description copied from interface:DialogListDialogAdd a dialog to the list of dialogs in this dialog- Specified by:
dialogin interfaceDialogListDialog<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperDialogListDialog> - 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<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperDialogListDialog> - 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<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperDialogListDialog> - Parameters:
dialogOpener- the dialog opener that will open the dialog- Returns:
- the dialog itself for method chaining
-
exitAction
public PaperDialogListDialog exitAction(@Nullable @Nullable Consumer<PaperDialogActionBuilder> action) Description copied from interface:DialogListDialogSet the action to be performed when exiting the dialog- Specified by:
exitActionin interfaceDialogListDialog<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperDialogListDialog> - 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<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperDialogListDialog> - 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<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperDialogListDialog> - Parameters:
buttonWidth- the width of the buttons in the dialog- Returns:
- the dialog itself for method chaining
-
getDialogType
protected io.papermc.paper.registry.data.dialog.type.DialogType getDialogType()- Specified by:
getDialogTypein classPaperDialog<PaperDialogListDialog>
-