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.DialogconstructDialog(com.github.retrooper.packetevents.protocol.dialog.CommonDialogData commonDialogData) booleanCheck if the confirmation dialog has a "no" action definedbooleanCheck 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, 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, pause
-
Constructor Details
-
PEConfirmationDialog
-
-
Method Details
-
yesAction
Description copied from interface:ConfirmationDialogSet the action for the "yes" button in the confirmation dialog- Specified by:
yesActionin 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:ConfirmationDialogSet the action for the "no" button in the confirmation dialog- Specified by:
noActionin 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:ConfirmationDialogCheck if the confirmation dialog has a "yes" action defined- Specified by:
hasYesActionin 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:ConfirmationDialogCheck if the confirmation dialog has a "no" action defined- Specified by:
hasNoActionin 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:
constructDialogin classPEDialog<PEConfirmationDialog>
-