Class PaperMultiActionDialog
java.lang.Object
io.github.projectunified.unidialog.paper.dialog.PaperDialog<PaperMultiActionDialog>
io.github.projectunified.unidialog.paper.dialog.PaperMultiActionDialog
- All Implemented Interfaces:
AdventureDialog<org.bukkit.inventory.ItemStack,,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperMultiActionDialog> AdventureSupport,Dialog<org.bukkit.inventory.ItemStack,,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperMultiActionDialog> MultiActionDialog<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperMultiActionDialog>
public class PaperMultiActionDialog
extends PaperDialog<PaperMultiActionDialog>
implements MultiActionDialog<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder,PaperDialogInputBuilder,PaperDialog<?>,PaperDialogActionBuilder,PaperMultiActionDialog>
-
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
ConstructorsConstructorDescriptionPaperMultiActionDialog(String defaultNamespace, Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
Method Summary
Modifier and TypeMethodDescriptionaction(Consumer<PaperDialogActionBuilder> action) Add an action to the dialogcolumns(int columns) Set the number of columns for the dialogexitAction(@Nullable Consumer<PaperDialogActionBuilder> action) Set the exit action for 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.MultiActionDialog
action
-
Constructor Details
-
PaperMultiActionDialog
-
-
Method Details
-
columns
Description copied from interface:MultiActionDialogSet the number of columns for the dialog- Specified by:
columnsin interfaceMultiActionDialog<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperMultiActionDialog> - 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<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperMultiActionDialog> - Parameters:
action- the action to be performed- Returns:
- the dialog itself for method chaining
-
exitAction
public PaperMultiActionDialog exitAction(@Nullable @Nullable Consumer<PaperDialogActionBuilder> action) Description copied from interface:MultiActionDialogSet the exit action for the dialog- Specified by:
exitActionin interfaceMultiActionDialog<org.bukkit.inventory.ItemStack,PaperDialogBodyBuilder, PaperDialogInputBuilder, PaperDialog<?>, PaperDialogActionBuilder, PaperMultiActionDialog> - Parameters:
action- the action to be performed when exiting the dialog- Returns:
- the dialog itself for method chaining
-
getDialogType
protected io.papermc.paper.registry.data.dialog.type.DialogType getDialogType()- Specified by:
getDialogTypein classPaperDialog<PaperMultiActionDialog>
-