Interface AdventureDialogActionBuilder<D extends 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, 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.
  • 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)
      Description copied from interface: DialogActionBuilder
      Set the label for the dialog action
      Specified by:
      label in interface DialogActionBuilder<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

      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)
      Description copied from interface: DialogActionBuilder
      Set the tooltip for the dialog action
      Specified by:
      tooltip in interface DialogActionBuilder<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