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 net.md_5.bungee.api.chat.BaseComponent title) DialogBase(@NonNull net.md_5.bungee.api.chat.BaseComponent title, net.md_5.bungee.api.chat.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).booleannet.md_5.bungee.api.chat.BaseComponentThe name which is used for any buttons leading to this dialog (eg from aDialogListDialog).externalTitle(net.md_5.bungee.api.chat.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 net.md_5.bungee.api.chat.BaseComponenttitle()The mandatory dialog title.title(@NonNull net.md_5.bungee.api.chat.BaseComponent title) The mandatory dialog title.toString()
-
Constructor Details
-
DialogBase
public DialogBase(@NonNull @NonNull net.md_5.bungee.api.chat.BaseComponent title) -
DialogBase
public DialogBase(@NonNull @NonNull net.md_5.bungee.api.chat.BaseComponent title, net.md_5.bungee.api.chat.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
@NonNull public @NonNull net.md_5.bungee.api.chat.BaseComponent title()The mandatory dialog title. -
externalTitle
public net.md_5.bungee.api.chat.BaseComponent 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
-