Interface BooleanInput<T extends BooleanInput<T>>

Type Parameters:
T - the type of the implementing class, for method chaining
All Known Subinterfaces:
AdventureBooleanInput<T>
All Known Implementing Classes:
PaperBooleanInput, PEBooleanInput, SpigotBooleanInput

public interface BooleanInput<T extends BooleanInput<T>>
Interface for boolean input types in a dialog.
  • Method Summary

    Modifier and Type
    Method
    Description
    initial(boolean initial)
    Set the initial value of the boolean input.
    label(String label)
    Set the label for the input.
    onFalse(String onFalse)
    Set the text to be sent when the input is false.
    onTrue(String onTrue)
    Set the text to be sent when the input is true.
  • Method Details

    • label

      T label(String label)
      Set the label for the input.
      Parameters:
      label - the label to display for the input
      Returns:
      the current instance for method chaining
    • initial

      T initial(boolean initial)
      Set the initial value of the boolean input.
      Parameters:
      initial - the initial value (true or false)
      Returns:
      the current instance for method chaining
    • onTrue

      T onTrue(String onTrue)
      Set the text to be sent when the input is true.
      Parameters:
      onTrue - the text to be sent when the input is true
      Returns:
      the current instance for method chaining
    • onFalse

      T onFalse(String onFalse)
      Set the text to be sent when the input is false.
      Parameters:
      onFalse - the text to be sent when the input is false
      Returns:
      the current instance for method chaining