Interface AdventureDialog<I,BB extends DialogBodyBuilder<I>,IB extends 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
,Dialog<I,
BB, IB, T>
- All Known Implementing Classes:
PaperConfirmationDialog
,PaperDialog
,PaperDialogListDialog
,PaperMultiActionDialog
,PaperNoticeDialog
,PaperServerLinksDialog
,PEConfirmationDialog
,PEDialog
,PEDialogListDialog
,PEMultiActionDialog
,PENoticeDialog
,PEServerLinksDialog
public interface AdventureDialog<I,BB extends DialogBodyBuilder<I>,IB extends DialogInputBuilder,T extends AdventureDialog<I,BB,IB,T>>
extends 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
Dialog.AfterAction
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
externalTitle
(@Nullable String externalTitle) Set the external title of the dialog, which is used for displaying the dialog in a multi-dialog dialogexternalTitle
(@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 T
Set the title of the dialogtitle
(net.kyori.adventure.text.Component title) Set the title of the dialogMethods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize, getComponentDeserializer
Methods 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
Description copied from interface:Dialog
Set the title of the dialog- Specified by:
title
in interfaceDialog<I,
BB extends DialogBodyBuilder<I>, IB extends DialogInputBuilder, T extends AdventureDialog<I, BB, IB, T>> - Parameters:
title
- the title of the dialog- Returns:
- the dialog itself for method chaining
-
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
Description copied from interface:Dialog
Set the external title of the dialog, which is used for displaying the dialog in a multi-dialog dialog- Specified by:
externalTitle
in interfaceDialog<I,
BB extends DialogBodyBuilder<I>, IB extends DialogInputBuilder, T extends AdventureDialog<I, BB, IB, T>> - Parameters:
externalTitle
- the external title of the dialog- Returns:
- the dialog itself for method chaining
-