Class BungeeBooleanInput

java.lang.Object
io.github.projectunified.unidialog.bungeecord.input.BungeeDialogInput
io.github.projectunified.unidialog.bungeecord.input.BungeeBooleanInput
All Implemented Interfaces:
BooleanInput<BungeeBooleanInput>

public class BungeeBooleanInput extends BungeeDialogInput implements BooleanInput<BungeeBooleanInput>
  • Constructor Details

    • BungeeBooleanInput

      public BungeeBooleanInput(String key)
  • Method Details

    • label

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

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

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

      public BungeeBooleanInput 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<BungeeBooleanInput>
      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 BungeeDialogInput