Package net.md_5.bungee.api.dialog
Class ServerLinksDialog
- java.lang.Object
-
- net.md_5.bungee.api.dialog.ServerLinksDialog
-
-
Constructor Summary
Constructors Constructor Description ServerLinksDialog(DialogBase base)ServerLinksDialog(DialogBase base, ClickEvent onClick, int columns, int buttonWidth)Creates a newServerLinksDialoginstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbuttonWidth()The width of the dialog buttons (default: 150).ServerLinksDialogbuttonWidth(int buttonWidth)The width of the dialog buttons (default: 150).intcolumns()The number of columns for the dialog buttons (default: 2).ServerLinksDialogcolumns(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()ClickEventonClick()The optionalClickEventfor this dialog.ServerLinksDialogonClick(ClickEvent onClick)The optionalClickEventfor this dialog.voidsetBase(DialogBase base)Sets the dialog base.StringtoString()
-
-
-
Constructor Detail
-
ServerLinksDialog
public ServerLinksDialog(DialogBase base)
-
ServerLinksDialog
public ServerLinksDialog(DialogBase base, ClickEvent onClick, int columns, int buttonWidth)
Creates a newServerLinksDialoginstance.- Parameters:
base-onClick- The optionalClickEventfor this dialog.columns- The number of columns for the dialog buttons (default: 2).buttonWidth- The width of the dialog buttons (default: 150).
-
-
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.
-
onClick
public ClickEvent onClick()
The optionalClickEventfor this dialog.
-
columns
public int columns()
The number of columns for the dialog buttons (default: 2).
-
buttonWidth
public int buttonWidth()
The width of the dialog buttons (default: 150).
-
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.
-
onClick
public ServerLinksDialog onClick(ClickEvent onClick)
The optionalClickEventfor this dialog.- Returns:
this.
-
columns
public ServerLinksDialog columns(int columns)
The number of columns for the dialog buttons (default: 2).- Returns:
this.
-
buttonWidth
public ServerLinksDialog buttonWidth(int buttonWidth)
The width of the dialog buttons (default: 150).- Returns:
this.
-
-