Package net.md_5.bungee.api.dialog.input
Class InputOption
java.lang.Object
net.md_5.bungee.api.dialog.input.InputOption
Represents an option choice which may form part of a
SingleOptionInput.-
Constructor Summary
ConstructorsConstructorDescriptionInputOption(@NonNull String id) InputOption(@NonNull String id, BaseComponent display, Boolean initial) Creates a newInputOptioninstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandisplay()The text to display for this option.display(BaseComponent display) The text to display for this option.booleaninthashCode()@NonNull Stringid()The string value associated with this option, to be submitted when selected.The string value associated with this option, to be submitted when selected.initial()Whether this option is the one initially selected.Whether this option is the one initially selected.toString()
-
Constructor Details
-
InputOption
-
InputOption
Creates a newInputOptioninstance.- Parameters:
id- The string value associated with this option, to be submitted when selected.display- The text to display for this option.initial- Whether this option is the one initially selected. Only one option may have this value as true (default: first option).
-
-
Method Details
-
id
The string value associated with this option, to be submitted when selected. -
display
The text to display for this option. -
initial
Whether this option is the one initially selected. Only one option may have this value as true (default: first option). -
id
The string value associated with this option, to be submitted when selected.- Returns:
this.
-
display
The text to display for this option.- Returns:
this.
-
initial
Whether this option is the one initially selected. Only one option may have this value as true (default: first option).- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-