Interface AdventureDialogActionBuilder<D extends Dialog<?,?,?,?>,T extends AdventureDialogActionBuilder<D,T>>
- Type Parameters:
D
- the type of the base dialogT
- the type of the builder, for method chaining
- All Superinterfaces:
AdventureSupport
,DialogActionBuilder<D,
T>
- All Known Implementing Classes:
PaperDialogActionBuilder
,PEDialogActionBuilder
public interface AdventureDialogActionBuilder<D extends Dialog<?,?,?,?>,T extends AdventureDialogActionBuilder<D,T>>
extends DialogActionBuilder<D,T>, AdventureSupport
An extension of
DialogActionBuilder
that provides additional methods for Component
labels and tooltips.-
Field Summary
Fields inherited from interface io.github.projectunified.unidialog.core.action.DialogActionBuilder
DEFAULT_WIDTH
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
Set the label for the dialog actionlabel
(net.kyori.adventure.text.Component label) Set the label for the dialog actiondefault T
Set the tooltip for the dialog actiontooltip
(@Nullable net.kyori.adventure.text.Component tooltip) Set the tooltip for the dialog actionMethods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize, getComponentDeserializer
Methods inherited from interface io.github.projectunified.unidialog.core.action.DialogActionBuilder
copyToClipboard, dynamicCustom, dynamicCustom, dynamicRunCommand, openUrl, runCommand, showDialog, showDialog, showDialog, suggestCommand, width
-
Method Details
-
label
Set the label for the dialog action- Parameters:
label
- the label to set- Returns:
- the current instance of the builder for method chaining
-
label
Description copied from interface:DialogActionBuilder
Set the label for the dialog action- Specified by:
label
in interfaceDialogActionBuilder<D extends Dialog<?,
?, ?, ?>, T extends AdventureDialogActionBuilder<D, T>> - Parameters:
label
- the label to set- Returns:
- the current instance of the builder for method chaining
-
tooltip
Set the tooltip for the dialog action- Parameters:
tooltip
- the tooltip to set, can be null- Returns:
- the current instance of the builder for method chaining
-
tooltip
Description copied from interface:DialogActionBuilder
Set the tooltip for the dialog action- Specified by:
tooltip
in interfaceDialogActionBuilder<D extends Dialog<?,
?, ?, ?>, T extends AdventureDialogActionBuilder<D, T>> - Parameters:
tooltip
- the tooltip to set, can be null- Returns:
- the current instance of the builder for method chaining
-