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.DialogType
Methods 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, 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.adventure.dialog.AdventureDialog
externalTitle, title
Methods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize
Methods inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
afterAction, body, body, canCloseWithEscape, input, input, opener, pause
Methods inherited from interface io.github.projectunified.unidialog.core.dialog.MultiActionDialog
action
-
Constructor Details
-
PaperMultiActionDialog
-
-
Method Details
-
columns
Description copied from interface:MultiActionDialog
Set the number of columns for the dialog- Specified by:
columns
in 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:MultiActionDialog
Add an action to the dialog- Specified by:
action
in 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:MultiActionDialog
Set the exit action for the dialog- Specified by:
exitAction
in 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:
getDialogType
in classPaperDialog<PaperMultiActionDialog>
-