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.InputControlgetInput()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
getComponentDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.projectunified.unidialog.adventure.input.AdventureBooleanInput
labelMethods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserialize, getComponentDeserializer
-
Constructor Details
-
PEBooleanInput
-
-
Method Details
-
label
Description copied from interface:AdventureBooleanInputSet the label for the input.- Specified by:
labelin interfaceAdventureBooleanInput<PEBooleanInput>- Parameters:
label- the label to display for the input- Returns:
- the current instance for method chaining
-
initial
Description copied from interface:BooleanInputSet the initial value of the boolean input.- Specified by:
initialin interfaceBooleanInput<PEBooleanInput>- Parameters:
initial- the initial value (true or false)- Returns:
- the current instance for method chaining
-
onTrue
Description copied from interface:BooleanInputSet the text to be sent when the input is true.- Specified by:
onTruein 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:BooleanInputSet the text to be sent when the input is false.- Specified by:
onFalsein 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:
getInputin classPEDialogInput
-