Class PEConfirmationDialog
java.lang.Object
io.github.projectunified.unidialog.packetevents.dialog.PEDialog<PEConfirmationDialog>
io.github.projectunified.unidialog.packetevents.dialog.PEConfirmationDialog
- All Implemented Interfaces:
AdventureDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,
,PEDialogBodyBuilder, PEDialogInputBuilder, PEConfirmationDialog> AdventureSupport
,ConfirmationDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,
,PEDialogBodyBuilder, PEDialogInputBuilder, PEDialog<?>, PEDialogActionBuilder, PEConfirmationDialog> Dialog<com.github.retrooper.packetevents.protocol.item.ItemStack,
PEDialogBodyBuilder, PEDialogInputBuilder, PEConfirmationDialog>
public class PEConfirmationDialog
extends PEDialog<PEConfirmationDialog>
implements ConfirmationDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,PEDialogBodyBuilder,PEDialogInputBuilder,PEDialog<?>,PEDialogActionBuilder,PEConfirmationDialog>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
Dialog.AfterAction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.github.retrooper.packetevents.protocol.dialog.Dialog
constructDialog
(com.github.retrooper.packetevents.protocol.dialog.CommonDialogData commonDialogData) boolean
Check if the confirmation dialog has a "no" action definedboolean
Check if the confirmation dialog has a "yes" action definednoAction
(Consumer<PEDialogActionBuilder> action) Set the action for the "no" button in the confirmation dialogyesAction
(Consumer<PEDialogActionBuilder> action) Set the action for the "yes" button in the confirmation 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
-
Constructor Details
-
PEConfirmationDialog
-
-
Method Details
-
yesAction
Description copied from interface:ConfirmationDialog
Set the action for the "yes" button in the confirmation dialog- Specified by:
yesAction
in interfaceConfirmationDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,
PEDialogBodyBuilder, PEDialogInputBuilder, PEDialog<?>, PEDialogActionBuilder, PEConfirmationDialog> - Parameters:
action
- the action to be performed when the "yes" button is clicked- Returns:
- the confirmation dialog itself for method chaining
-
noAction
Description copied from interface:ConfirmationDialog
Set the action for the "no" button in the confirmation dialog- Specified by:
noAction
in interfaceConfirmationDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,
PEDialogBodyBuilder, PEDialogInputBuilder, PEDialog<?>, PEDialogActionBuilder, PEConfirmationDialog> - Parameters:
action
- the action to be performed when the "no" button is clicked- Returns:
- the confirmation dialog itself for method chaining
-
hasYesAction
public boolean hasYesAction()Description copied from interface:ConfirmationDialog
Check if the confirmation dialog has a "yes" action defined- Specified by:
hasYesAction
in interfaceConfirmationDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,
PEDialogBodyBuilder, PEDialogInputBuilder, PEDialog<?>, PEDialogActionBuilder, PEConfirmationDialog> - Returns:
- true if a "yes" action is defined, false otherwise
-
hasNoAction
public boolean hasNoAction()Description copied from interface:ConfirmationDialog
Check if the confirmation dialog has a "no" action defined- Specified by:
hasNoAction
in interfaceConfirmationDialog<com.github.retrooper.packetevents.protocol.item.ItemStack,
PEDialogBodyBuilder, PEDialogInputBuilder, PEDialog<?>, PEDialogActionBuilder, PEConfirmationDialog> - Returns:
- true if a "no" action is defined, false otherwise
-
constructDialog
protected com.github.retrooper.packetevents.protocol.dialog.Dialog constructDialog(com.github.retrooper.packetevents.protocol.dialog.CommonDialogData commonDialogData) - Specified by:
constructDialog
in classPEDialog<PEConfirmationDialog>
-