Package net.md_5.bungee.api.dialog
Class DialogBase
- java.lang.Object
-
- net.md_5.bungee.api.dialog.DialogBase
-
public final class DialogBase extends Object
Represents the title and other options common to all dialogs.
-
-
Constructor Summary
Constructors Constructor Description DialogBase(BaseComponent title)Creates a newDialogBaseinstance.DialogBase(BaseComponent title, BaseComponent externalTitle, List<DialogBody> body, boolean canCloseWithEscape)Creates a newDialogBaseinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DialogBody>body()The body elements which make up this dialog.DialogBasebody(List<DialogBody> body)The body elements which make up this dialog.booleancanCloseWithEscape()Whether this dialog can be closed with the escape key (default: true).DialogBasecanCloseWithEscape(boolean canCloseWithEscape)Whether this dialog can be closed with the escape key (default: true).booleanequals(Object o)BaseComponentexternalTitle()The name which is used for any buttons leading to this dialog (eg from aDialogListDialog).DialogBaseexternalTitle(BaseComponent externalTitle)The name which is used for any buttons leading to this dialog (eg from aDialogListDialog).inthashCode()BaseComponenttitle()The mandatory dialog title.StringtoString()
-
-
-
Constructor Detail
-
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
public DialogBase(BaseComponent title)
Creates a newDialogBaseinstance.- Parameters:
title- The mandatory dialog title.
-
-
Method Detail
-
title
public BaseComponent title()
The mandatory dialog title.
-
externalTitle
public BaseComponent externalTitle()
The name which is used for any buttons leading to this dialog (eg from aDialogListDialog). Otherwise defaults totitle.
-
body
public List<DialogBody> 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
public DialogBase externalTitle(BaseComponent externalTitle)
The name which is used for any buttons leading to this dialog (eg from aDialogListDialog). Otherwise defaults totitle.- Returns:
this.
-
body
public DialogBase body(List<DialogBody> body)
The body elements which make up this dialog.- Returns:
this.
-
canCloseWithEscape
public DialogBase canCloseWithEscape(boolean canCloseWithEscape)
Whether this dialog can be closed with the escape key (default: true).- Returns:
this.
-
-