Interface AdventureDialogActionBuilder<D extends io.github.projectunified.unidialog.core.dialog.Dialog<?,?,?,?>,T extends AdventureDialogActionBuilder<D,T>>

Type Parameters:
D - the type of the base dialog
T - 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

    Modifier and Type
    Method
    Description
    default T
    label(String label)
     
    label(net.kyori.adventure.text.Component label)
    Set the label for the dialog action
    default T
    tooltip(@Nullable String tooltip)
     
    tooltip(@Nullable net.kyori.adventure.text.Component tooltip)
    Set the tooltip for the dialog action

    Methods 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

      T label(net.kyori.adventure.text.Component 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

      default T label(String label)
      Specified by:
      label in interface io.github.projectunified.unidialog.core.action.DialogActionBuilder<D extends io.github.projectunified.unidialog.core.dialog.Dialog<?,?,?,?>,T extends AdventureDialogActionBuilder<D,T>>
    • tooltip

      T tooltip(@Nullable @Nullable net.kyori.adventure.text.Component 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

      default T tooltip(@Nullable @Nullable String tooltip)
      Specified by:
      tooltip in interface io.github.projectunified.unidialog.core.action.DialogActionBuilder<D extends io.github.projectunified.unidialog.core.dialog.Dialog<?,?,?,?>,T extends AdventureDialogActionBuilder<D,T>>