Interface AdventureDialogActionBuilder<D extends io.github.projectunified.unidialog.core.dialog.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,io.github.projectunified.unidialog.core.action.DialogActionBuilder<D,T>
public interface AdventureDialogActionBuilder<D extends io.github.projectunified.unidialog.core.dialog.Dialog<?,?,?,?>,T extends AdventureDialogActionBuilder<D,T>>
extends io.github.projectunified.unidialog.core.action.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
Methods 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
- Specified by:
labelin interfaceio.github.projectunified.unidialog.core.action.DialogActionBuilder<D extends io.github.projectunified.unidialog.core.dialog.Dialog<?,?, ?, ?>, T extends AdventureDialogActionBuilder<D, T>>
-
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
- Specified by:
tooltipin interfaceio.github.projectunified.unidialog.core.action.DialogActionBuilder<D extends io.github.projectunified.unidialog.core.dialog.Dialog<?,?, ?, ?>, T extends AdventureDialogActionBuilder<D, T>>
-