Class PEMultiActionDialog
java.lang.Object
io.github.projectunified.unidialog.packetevents.dialog.PEDialog<PEMultiActionDialog>
io.github.projectunified.unidialog.packetevents.dialog.PEMultiActionDialog
- All Implemented Interfaces:
AdventureDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,
,PEDialogBodyBuilder, PEDialogInputBuilder, PEMultiActionDialog> AdventureSupport
,Dialog<com.github.retrooper.packetevents.protocol.item.ItemStack,
,PEDialogBodyBuilder, PEDialogInputBuilder, PEMultiActionDialog> MultiActionDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,
PEDialogBodyBuilder, PEDialogInputBuilder, PEDialog<?>, PEDialogActionBuilder, PEMultiActionDialog>
public class PEMultiActionDialog
extends PEDialog<PEMultiActionDialog>
implements MultiActionDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,PEDialogBodyBuilder,PEDialogInputBuilder,PEDialog<?>,PEDialogActionBuilder,PEMultiActionDialog>
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction
(Consumer<PEDialogActionBuilder> action) Add an action to the dialogcolumns
(int columns) Set the number of columns for the dialogprotected com.github.retrooper.packetevents.protocol.dialog.Dialog
constructDialog
(com.github.retrooper.packetevents.protocol.dialog.CommonDialogData commonDialogData) exitAction
(@Nullable Consumer<PEDialogActionBuilder> action) Set the exit action for the dialogMethods inherited from class io.github.projectunified.unidialog.packetevents.dialog.PEDialog
afterAction, body, canCloseWithEscape, externalTitle, getAction, getComponentDeserializer, getDialog, input, opener, pause, 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
-
PEMultiActionDialog
-
-
Method Details
-
columns
Description copied from interface:MultiActionDialog
Set the number of columns for the dialog- Specified by:
columns
in interfaceMultiActionDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,
PEDialogBodyBuilder, PEDialogInputBuilder, PEDialog<?>, PEDialogActionBuilder, PEMultiActionDialog> - 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<com.github.retrooper.packetevents.protocol.item.ItemStack,
PEDialogBodyBuilder, PEDialogInputBuilder, PEDialog<?>, PEDialogActionBuilder, PEMultiActionDialog> - Parameters:
action
- the action to be performed- Returns:
- the dialog itself for method chaining
-
exitAction
Description copied from interface:MultiActionDialog
Set the exit action for the dialog- Specified by:
exitAction
in interfaceMultiActionDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,
PEDialogBodyBuilder, PEDialogInputBuilder, PEDialog<?>, PEDialogActionBuilder, PEMultiActionDialog> - Parameters:
action
- the action to be performed when exiting the dialog- Returns:
- the dialog itself for method chaining
-
constructDialog
protected com.github.retrooper.packetevents.protocol.dialog.Dialog constructDialog(com.github.retrooper.packetevents.protocol.dialog.CommonDialogData commonDialogData) - Specified by:
constructDialog
in classPEDialog<PEMultiActionDialog>
-