Package net.md_5.bungee.api.dialog
Class ConfirmationDialog
java.lang.Object
net.md_5.bungee.api.dialog.ConfirmationDialog
- All Implemented Interfaces:
Dialog
Represents a simple dialog with text and two actions at the bottom (default:
"yes", "no").
-
Constructor Summary
ConstructorsConstructorDescriptionConfirmationDialog(@NonNull DialogBase base) ConfirmationDialog(@NonNull DialogBase base, ActionButton yes, ActionButton no) Creates a newConfirmationDialoginstance. -
Method Summary
Modifier and TypeMethodDescriptionboolean@NonNull DialogBasegetBase()Gets the dialog base which contains the dialog title and other options common to all types of dialogs.inthashCode()no()The "no" click action / bottom (appears on the right).no(ActionButton no) The "no" click action / bottom (appears on the right).voidsetBase(@NonNull DialogBase base) Sets the dialog base.toString()yes()The "yes" click action / bottom (appears on the left).yes(ActionButton yes) The "yes" click action / bottom (appears on the left).
-
Constructor Details
-
ConfirmationDialog
-
ConfirmationDialog
Creates a newConfirmationDialoginstance.- Parameters:
base-yes- The "yes" click action / bottom (appears on the left).no- The "no" click action / bottom (appears on the right).
-
-
Method Details
-
getBase
Description copied from interface:DialogGets the dialog base which contains the dialog title and other options common to all types of dialogs. -
yes
The "yes" click action / bottom (appears on the left). -
no
The "no" click action / bottom (appears on the right). -
setBase
Description copied from interface:DialogSets the dialog base.
For internal use only as this is mandatory and should be specified in the constructor. -
yes
The "yes" click action / bottom (appears on the left).- Returns:
this.
-
no
The "no" click action / bottom (appears on the right).- Returns:
this.
-
toString
-
equals
-
hashCode
public int hashCode()
-