Package net.md_5.bungee.api.dialog
Class ServerLinksDialog
java.lang.Object
net.md_5.bungee.api.dialog.ServerLinksDialog
- All Implemented Interfaces:
Dialog
Represents a dialog which shows the links configured/sent from the server.
-
Constructor Summary
ConstructorsConstructorDescriptionServerLinksDialog(DialogBase base) ServerLinksDialog(DialogBase base, ClickEvent onClick, int columns, int buttonWidth) Creates a newServerLinksDialoginstance. -
Method Summary
Modifier and TypeMethodDescriptionintThe width of the dialog buttons (default: 150).buttonWidth(int buttonWidth) The width of the dialog buttons (default: 150).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()onClick()The optionalClickEventfor this dialog.onClick(ClickEvent onClick) The optionalClickEventfor this dialog.voidsetBase(DialogBase base) Sets the dialog base.toString()
-
Constructor Details
-
ServerLinksDialog
-
ServerLinksDialog
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 Details
-
getBase
Description copied from interface:DialogGets the dialog base which contains the dialog title and other options common to all types of dialogs. -
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
Description copied from interface:DialogSets the dialog base.
For internal use only as this is mandatory and should be specified in the constructor. -
onClick
The optionalClickEventfor this dialog.- Returns:
this.
-
columns
The number of columns for the dialog buttons (default: 2).- Returns:
this.
-
buttonWidth
The width of the dialog buttons (default: 150).- Returns:
this.
-
toString
-
equals
-
hashCode
public int hashCode()
-