Class SpigotBooleanInput
java.lang.Object
io.github.projectunified.unidialog.spigot.input.SpigotDialogInput
io.github.projectunified.unidialog.spigot.input.SpigotBooleanInput
- All Implemented Interfaces:
BooleanInput<SpigotBooleanInput>
public class SpigotBooleanInput
extends SpigotDialogInput
implements BooleanInput<SpigotBooleanInput>
-
Field Summary
Fields inherited from class io.github.projectunified.unidialog.spigot.input.SpigotDialogInput
key
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.md_5.bungee.api.dialog.input.DialogInput
initial
(boolean initial) Set the initial value of the boolean input.Set the label for the input.label
(net.md_5.bungee.api.chat.BaseComponent label) 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.
-
Constructor Details
-
SpigotBooleanInput
-
-
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
-
label
Description copied from interface:BooleanInput
Set the label for the input.- Specified by:
label
in interfaceBooleanInput<SpigotBooleanInput>
- Parameters:
label
- the label to display for the input- Returns:
- the current instance for method chaining
-
initial
Description copied from interface:BooleanInput
Set the initial value of the boolean input.- Specified by:
initial
in interfaceBooleanInput<SpigotBooleanInput>
- Parameters:
initial
- the initial value (true or false)- Returns:
- the current instance for method chaining
-
onTrue
Description copied from interface:BooleanInput
Set the text to be sent when the input is true.- Specified by:
onTrue
in interfaceBooleanInput<SpigotBooleanInput>
- Parameters:
onTrue
- the text to be sent when the input is true- Returns:
- the current instance for method chaining
-
onFalse
Description copied from interface:BooleanInput
Set the text to be sent when the input is false.- Specified by:
onFalse
in interfaceBooleanInput<SpigotBooleanInput>
- Parameters:
onFalse
- the text to be sent when the input is false- Returns:
- the current instance for method chaining
-
getDialogInput
public net.md_5.bungee.api.dialog.input.DialogInput getDialogInput()- Specified by:
getDialogInput
in classSpigotDialogInput
-