Interface BooleanDialogInput
- All Superinterfaces:
DialogInput
A boolean dialog input.
Created via DialogInput.bool(String, Component, boolean, String, String)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A builder for a boolean dialog input. -
Method Summary
Methods inherited from interface io.papermc.paper.registry.data.dialog.input.DialogInput
key
-
Method Details
-
label
The label for the input.- Returns:
- the label component
-
initial
The initial value of the input.- Returns:
- true if the input is initially true, false otherwise
-
onTrue
The input's value in a template when the value is true.- Returns:
- the string to use when the input is true
-
onFalse
The input's value in a template when the value is false.- Returns:
- the string to use when the input is false
-