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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTypes of action which may be taken after the dialog. -
Constructor Summary
ConstructorsConstructorDescriptionDialogBase(@NonNull BaseComponent title) DialogBase(@NonNull BaseComponent title, BaseComponent externalTitle, List<DialogInput> inputs, List<DialogBody> body, Boolean canCloseWithEscape, Boolean pause, DialogBase.AfterAction afterAction) Creates a newDialogBaseinstance. -
Method Summary
Modifier and TypeMethodDescriptionAction to take after the a click or submit action is performed on the dialog (default: close).afterAction(DialogBase.AfterAction afterAction) Action to take after the a click or submit action is performed on the dialog (default: close).body()The body elements which make up this dialog.body(List<DialogBody> body) The body elements which make up this dialog.Whether 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()inputs()The inputs to the dialog.inputs(List<DialogInput> inputs) The inputs to the dialog.pause()Whether this dialog should pause the game in single-player mode (default: true).Whether this dialog should pause the game in single-player mode (default: true).@NonNull BaseComponenttitle()The mandatory dialog title.title(@NonNull BaseComponent title) The mandatory dialog title.toString()
-
Constructor Details
-
DialogBase
-
DialogBase
public DialogBase(@NonNull @NonNull BaseComponent title, BaseComponent externalTitle, List<DialogInput> inputs, List<DialogBody> body, Boolean canCloseWithEscape, Boolean pause, DialogBase.AfterAction afterAction) 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.inputs- The inputs to the dialog.body- The body elements which make up this dialog.canCloseWithEscape- Whether this dialog can be closed with the escape key (default: true).pause- Whether this dialog should pause the game in single-player mode (default: true).afterAction- Action to take after the a click or submit action is performed on the dialog (default: close).
-
-
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. -
inputs
The inputs to the dialog. -
body
The body elements which make up this dialog. -
canCloseWithEscape
Whether this dialog can be closed with the escape key (default: true). -
pause
Whether this dialog should pause the game in single-player mode (default: true). -
afterAction
Action to take after the a click or submit action is performed on the dialog (default: close). -
title
The mandatory dialog title.- Returns:
this.
-
externalTitle
The name which is used for any buttons leading to this dialog (eg from aDialogListDialog). Otherwise defaults totitle.- Returns:
this.
-
inputs
The inputs to the dialog.- 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.
-
pause
Whether this dialog should pause the game in single-player mode (default: true).- Returns:
this.
-
afterAction
Action to take after the a click or submit action is performed on the dialog (default: close).- Returns:
this.
-
equals
-
hashCode
public int hashCode() -
toString
-