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>
  • Constructor Details

    • SpigotBooleanInput

      public SpigotBooleanInput(String key)
  • Method Details

    • label

      public SpigotBooleanInput label(net.md_5.bungee.api.chat.BaseComponent label)
      Set the label for the input.
      Parameters:
      label - the label to display for the input
      Returns:
      the current instance for method chaining
    • label

      public SpigotBooleanInput label(String label)
      Description copied from interface: BooleanInput
      Set the label for the input.
      Specified by:
      label in interface BooleanInput<SpigotBooleanInput>
      Parameters:
      label - the label to display for the input
      Returns:
      the current instance for method chaining
    • initial

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

      public SpigotBooleanInput 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<SpigotBooleanInput>
      Parameters:
      onTrue - the text to be sent when the input is true
      Returns:
      the current instance for method chaining
    • onFalse

      public SpigotBooleanInput 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<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 class SpigotDialogInput