Interface BooleanDialogInput
- All Superinterfaces:
DialogInput
A boolean dialog input.
Created via DialogInput.bool(String, Component, boolean, String, String)
- Since:
- 1.21.7
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for a boolean dialog input. -
Method Summary
Methods inherited from interface DialogInput
key
-
Method Details
-
label
@Contract(pure=true) net.kyori.adventure.text.Component label()The label for the input.- Returns:
- the label component
- Since:
- 1.21.7
-
initial
@Contract(pure=true) boolean initial()The initial value of the input.- Returns:
- true if the input is initially true, false otherwise
- Since:
- 1.21.7
-
onTrue
The input's value in a template when the value is true.- Returns:
- the string to use when the input is true
- Since:
- 1.21.7
-
onFalse
The input's value in a template when the value is false.- Returns:
- the string to use when the input is false
- Since:
- 1.21.7
-