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 TSet the label for the dialog actionlabel(net.kyori.adventure.text.Component label) Set the label for the dialog actiondefault TSet 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, getComponentDeserializerMethods 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:DialogActionBuilderSet the label for the dialog action- Specified by:
labelin 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:DialogActionBuilderSet the tooltip for the dialog action- Specified by:
tooltipin 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
-