Package net.md_5.bungee.api.dialog
Class MultiActionDialog
java.lang.Object
net.md_5.bungee.api.dialog.MultiActionDialog
- All Implemented Interfaces:
Dialog
Represents a dialog with text a list of action buttons grouped into columns
and scrollable if necessary.
-
Constructor Summary
ConstructorsConstructorDescriptionMultiActionDialog(DialogBase base, List<DialogClickAction> actions, int columns, ClickEvent onCancel) MultiActionDialog(DialogBase base, DialogClickAction... actions) -
Method Summary
Modifier and TypeMethodDescriptionactions()The action buttons in the dialog.actions(List<DialogClickAction> actions) The action buttons in the dialog.intcolumns()The number of columns for the dialog buttons (default: 2).columns(int columns) The number of columns for the dialog buttons (default: 2).booleangetBase()Gets the dialog base which contains the dialog title and other options common to all types of dialogs.inthashCode()onCancel()TheClickEventactivated when the dialog is cancelled.onCancel(ClickEvent onCancel) TheClickEventactivated when the dialog is cancelled.voidsetBase(DialogBase base) Sets the dialog base.toString()
-
Constructor Details
-
MultiActionDialog
-
MultiActionDialog
public MultiActionDialog(DialogBase base, List<DialogClickAction> actions, int columns, ClickEvent onCancel)
-
-
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. -
actions
The action buttons in the dialog. At least one must be provided. -
columns
public int columns()The number of columns for the dialog buttons (default: 2). -
onCancel
TheClickEventactivated when the dialog is cancelled. -
setBase
Description copied from interface:DialogSets the dialog base.
For internal use only as this is mandatory and should be specified in the constructor. -
actions
The action buttons in the dialog. At least one must be provided.- Returns:
this.
-
columns
The number of columns for the dialog buttons (default: 2).- Returns:
this.
-
onCancel
TheClickEventactivated when the dialog is cancelled.- Returns:
this.
-
toString
-
equals
-
hashCode
public int hashCode()
-