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 TypeMethodDescriptioninitial
(boolean initial) Set the initial value of the boolean input.Set the label for the input.Set the text to be sent when the input is false.Set the text to be sent when the input is true.
-
Method Details
-
label
Set the label for the input.- Parameters:
label
- the label to display for the input- Returns:
- the current instance for method chaining
-
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
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
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
-