Class PEBooleanInput
java.lang.Object
io.github.projectunified.unidialog.packetevents.input.PEDialogInput
io.github.projectunified.unidialog.packetevents.input.PEBooleanInput
- All Implemented Interfaces:
AdventureBooleanInput<PEBooleanInput>
,AdventureSupport
,BooleanInput<PEBooleanInput>
-
Constructor Summary
ConstructorsConstructorDescriptionPEBooleanInput
(Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
Method Summary
Modifier and TypeMethodDescriptioncom.github.retrooper.packetevents.protocol.dialog.input.InputControl
getInput()
initial
(boolean initial) Set the initial value of the boolean input.label
(net.kyori.adventure.text.Component 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.Methods inherited from class io.github.projectunified.unidialog.packetevents.input.PEDialogInput
getComponentDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.projectunified.unidialog.adventure.input.AdventureBooleanInput
label
Methods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize, getComponentDeserializer
-
Constructor Details
-
PEBooleanInput
-
-
Method Details
-
label
Description copied from interface:AdventureBooleanInput
Set the label for the input.- Specified by:
label
in interfaceAdventureBooleanInput<PEBooleanInput>
- 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<PEBooleanInput>
- 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<PEBooleanInput>
- 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<PEBooleanInput>
- Parameters:
onFalse
- the text to be sent when the input is false- Returns:
- the current instance for method chaining
-
getInput
public com.github.retrooper.packetevents.protocol.dialog.input.InputControl getInput()- Specified by:
getInput
in classPEDialogInput
-