Interface AdventureDialog<I,BB extends io.github.projectunified.unidialog.core.body.DialogBodyBuilder<I>,IB extends io.github.projectunified.unidialog.core.input.DialogInputBuilder,T extends AdventureDialog<I,BB,IB,T>>
- Type Parameters:
I- the type of the item for the item bodyBB- the type of the dialog body builderIB- the type of the dialog input builderT- the type of the dialog itself, for method chaining
- All Superinterfaces:
AdventureSupport,io.github.projectunified.unidialog.core.dialog.Dialog<I,BB, IB, T>
public interface AdventureDialog<I,BB extends io.github.projectunified.unidialog.core.body.DialogBodyBuilder<I>,IB extends io.github.projectunified.unidialog.core.input.DialogInputBuilder,T extends AdventureDialog<I,BB,IB,T>>
extends io.github.projectunified.unidialog.core.dialog.Dialog<I,BB,IB,T>, AdventureSupport
An extension of
Dialog that provides additional methods for handling Component titles and external titles.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
io.github.projectunified.unidialog.core.dialog.Dialog.AfterAction -
Method Summary
Modifier and TypeMethodDescriptiondefault TexternalTitle(@Nullable String externalTitle) externalTitle(@Nullable net.kyori.adventure.text.Component externalTitle) Set the external title of the dialog, which is used for displaying the dialog in a multi-dialog dialogdefault Ttitle(net.kyori.adventure.text.Component title) Set the title of the dialogMethods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize, getComponentDeserializerMethods inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog
afterAction, body, body, canCloseWithEscape, input, input, opener, pause
-
Method Details
-
title
Set the title of the dialog- Parameters:
title- the title of the dialog- Returns:
- the dialog itself for method chaining
-
title
-
externalTitle
Set the external title of the dialog, which is used for displaying the dialog in a multi-dialog dialog- Parameters:
externalTitle- the external title of the dialog- Returns:
- the dialog itself for method chaining
-
externalTitle
-