Package net.md_5.bungee.api.dialog
Class DialogBase
java.lang.Object
net.md_5.bungee.api.dialog.DialogBase
Represents the title and other options common to all dialogs.
-
Constructor Summary
ConstructorsConstructorDescriptionDialogBase(BaseComponent title) Creates a newDialogBaseinstance.DialogBase(BaseComponent title, BaseComponent externalTitle, List<DialogBody> body, boolean canCloseWithEscape) Creates a newDialogBaseinstance. -
Method Summary
Modifier and TypeMethodDescriptionbody()The body elements which make up this dialog.body(List<DialogBody> body) The body elements which make up this dialog.booleanWhether this dialog can be closed with the escape key (default: true).canCloseWithEscape(boolean canCloseWithEscape) Whether this dialog can be closed with the escape key (default: true).booleanThe name which is used for any buttons leading to this dialog (eg from aDialogListDialog).externalTitle(BaseComponent externalTitle) The name which is used for any buttons leading to this dialog (eg from aDialogListDialog).inthashCode()title()The mandatory dialog title.toString()
-
Constructor Details
-
DialogBase
public DialogBase(BaseComponent title, BaseComponent externalTitle, List<DialogBody> body, boolean canCloseWithEscape) Creates a newDialogBaseinstance.- Parameters:
title- The mandatory dialog title.externalTitle- The name which is used for any buttons leading to this dialog (eg from aDialogListDialog). Otherwise defaults totitle.body- The body elements which make up this dialog.canCloseWithEscape- Whether this dialog can be closed with the escape key (default: true).
-
DialogBase
Creates a newDialogBaseinstance.- Parameters:
title- The mandatory dialog title.
-
-
Method Details
-
title
The mandatory dialog title. -
externalTitle
The name which is used for any buttons leading to this dialog (eg from aDialogListDialog). Otherwise defaults totitle. -
body
The body elements which make up this dialog. -
canCloseWithEscape
public boolean canCloseWithEscape()Whether this dialog can be closed with the escape key (default: true). -
externalTitle
The name which is used for any buttons leading to this dialog (eg from aDialogListDialog). Otherwise defaults totitle.- Returns:
this.
-
body
The body elements which make up this dialog.- Returns:
this.
-
canCloseWithEscape
Whether this dialog can be closed with the escape key (default: true).- Returns:
this.
-
equals
-
hashCode
public int hashCode() -
toString
-