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>

public class PEBooleanInput extends PEDialogInput implements AdventureBooleanInput<PEBooleanInput>
  • Constructor Details

    • PEBooleanInput

      public PEBooleanInput(Function<String,net.kyori.adventure.text.Component> componentDeserializer)
  • Method Details

    • label

      public PEBooleanInput label(net.kyori.adventure.text.Component label)
      Description copied from interface: AdventureBooleanInput
      Set the label for the input.
      Specified by:
      label in interface AdventureBooleanInput<PEBooleanInput>
      Parameters:
      label - the label to display for the input
      Returns:
      the current instance for method chaining
    • initial

      public PEBooleanInput initial(boolean initial)
      Description copied from interface: BooleanInput
      Set the initial value of the boolean input.
      Specified by:
      initial in interface BooleanInput<PEBooleanInput>
      Parameters:
      initial - the initial value (true or false)
      Returns:
      the current instance for method chaining
    • onTrue

      public PEBooleanInput onTrue(String onTrue)
      Description copied from interface: BooleanInput
      Set the text to be sent when the input is true.
      Specified by:
      onTrue in interface BooleanInput<PEBooleanInput>
      Parameters:
      onTrue - the text to be sent when the input is true
      Returns:
      the current instance for method chaining
    • onFalse

      public PEBooleanInput onFalse(String onFalse)
      Description copied from interface: BooleanInput
      Set the text to be sent when the input is false.
      Specified by:
      onFalse in interface BooleanInput<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 class PEDialogInput