Package net.md_5.bungee.api.dialog
Class MultiActionDialog
- java.lang.Object
-
- net.md_5.bungee.api.dialog.MultiActionDialog
-
-
Constructor Summary
Constructors Constructor Description MultiActionDialog(DialogBase base, List<DialogClickAction> actions, int columns, ClickEvent onCancel)MultiActionDialog(DialogBase base, DialogClickAction... actions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DialogClickAction>actions()The action buttons in the dialog.MultiActionDialogactions(List<DialogClickAction> actions)The action buttons in the dialog.intcolumns()The number of columns for the dialog buttons (default: 2).MultiActionDialogcolumns(int columns)The number of columns for the dialog buttons (default: 2).booleanequals(Object o)DialogBasegetBase()Gets the dialog base which contains the dialog title and other options common to all types of dialogs.inthashCode()ClickEventonCancel()TheClickEventactivated when the dialog is cancelled.MultiActionDialogonCancel(ClickEvent onCancel)TheClickEventactivated when the dialog is cancelled.voidsetBase(DialogBase base)Sets the dialog base.StringtoString()
-
-
-
Constructor Detail
-
MultiActionDialog
public MultiActionDialog(DialogBase base, DialogClickAction... actions)
-
MultiActionDialog
public MultiActionDialog(DialogBase base, List<DialogClickAction> actions, int columns, ClickEvent onCancel)
-
-
Method Detail
-
getBase
public DialogBase getBase()
Description copied from interface:DialogGets the dialog base which contains the dialog title and other options common to all types of dialogs.
-
actions
public List<DialogClickAction> 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
public ClickEvent onCancel()
TheClickEventactivated when the dialog is cancelled.
-
setBase
public void setBase(DialogBase base)
Description copied from interface:DialogSets the dialog base.
For internal use only as this is mandatory and should be specified in the constructor.
-
actions
public MultiActionDialog actions(List<DialogClickAction> actions)
The action buttons in the dialog. At least one must be provided.- Returns:
this.
-
columns
public MultiActionDialog columns(int columns)
The number of columns for the dialog buttons (default: 2).- Returns:
this.
-
onCancel
public MultiActionDialog onCancel(ClickEvent onCancel)
TheClickEventactivated when the dialog is cancelled.- Returns:
this.
-
-