Interface AdventureBooleanInput<T extends AdventureBooleanInput<T>>

Type Parameters:
T - the type of the input, for method chaining
All Superinterfaces:
AdventureSupport, BooleanInput<T>
All Known Implementing Classes:
PaperBooleanInput, PEBooleanInput

public interface AdventureBooleanInput<T extends AdventureBooleanInput<T>> extends BooleanInput<T>, AdventureSupport
An extension of BooleanInput that provides additional methods for handling Component labels.
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    label(String label)
    Set the label for the input.
    label(net.kyori.adventure.text.Component label)
    Set the label for the input.

    Methods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport

    deserialize, getComponentDeserializer

    Methods inherited from interface io.github.projectunified.unidialog.core.input.BooleanInput

    initial, onFalse, onTrue
  • Method Details

    • label

      T label(net.kyori.adventure.text.Component label)
      Set the label for the input.
      Parameters:
      label - the label to display for the input
      Returns:
      the current instance for method chaining
    • label

      default T label(String label)
      Description copied from interface: BooleanInput
      Set the label for the input.
      Specified by:
      label in interface BooleanInput<T extends AdventureBooleanInput<T>>
      Parameters:
      label - the label to display for the input
      Returns:
      the current instance for method chaining