Class SpigotConfirmationDialog
java.lang.Object
io.github.projectunified.unidialog.spigot.dialog.SpigotDialog<SpigotConfirmationDialog>
io.github.projectunified.unidialog.spigot.dialog.SpigotConfirmationDialog
- All Implemented Interfaces:
ConfirmationDialog<org.bukkit.inventory.ItemStack,
,SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotDialog<?>, SpigotDialogActionBuilder, SpigotConfirmationDialog> Dialog<org.bukkit.inventory.ItemStack,
SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotConfirmationDialog>
public class SpigotConfirmationDialog
extends SpigotDialog<SpigotConfirmationDialog>
implements ConfirmationDialog<org.bukkit.inventory.ItemStack,SpigotDialogBodyBuilder,SpigotDialogInputBuilder,SpigotDialog<?>,SpigotDialogActionBuilder,SpigotConfirmationDialog>
-
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 net.md_5.bungee.api.dialog.Dialog
constructDialog
(net.md_5.bungee.api.dialog.DialogBase dialogBase) boolean
Check if the confirmation dialog has a "no" action definedboolean
Check if the confirmation dialog has a "yes" action definednoAction
(Consumer<SpigotDialogActionBuilder> action) Set the action for the "no" button in the confirmation dialogyesAction
(Consumer<SpigotDialogActionBuilder> action) Set the action for the "yes" button in the confirmation dialogMethods inherited from class io.github.projectunified.unidialog.spigot.dialog.SpigotDialog
afterAction, body, canCloseWithEscape, externalTitle, externalTitle, getAction, getDialog, input, opener, pause, title, 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.core.dialog.Dialog
afterAction, body, body, canCloseWithEscape, externalTitle, input, input, opener, pause, title
-
Constructor Details
-
SpigotConfirmationDialog
-
-
Method Details
-
yesAction
Description copied from interface:ConfirmationDialog
Set the action for the "yes" button in the confirmation dialog- Specified by:
yesAction
in interfaceConfirmationDialog<org.bukkit.inventory.ItemStack,
SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotDialog<?>, SpigotDialogActionBuilder, SpigotConfirmationDialog> - 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<org.bukkit.inventory.ItemStack,
SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotDialog<?>, SpigotDialogActionBuilder, SpigotConfirmationDialog> - 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<org.bukkit.inventory.ItemStack,
SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotDialog<?>, SpigotDialogActionBuilder, SpigotConfirmationDialog> - 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<org.bukkit.inventory.ItemStack,
SpigotDialogBodyBuilder, SpigotDialogInputBuilder, SpigotDialog<?>, SpigotDialogActionBuilder, SpigotConfirmationDialog> - Returns:
- true if a "no" action is defined, false otherwise
-
constructDialog
protected net.md_5.bungee.api.dialog.Dialog constructDialog(net.md_5.bungee.api.dialog.DialogBase dialogBase) - Specified by:
constructDialog
in classSpigotDialog<SpigotConfirmationDialog>
-