Package net.md_5.bungee.api.dialog.input
Class SingleOptionInput
java.lang.Object
net.md_5.bungee.api.dialog.input.DialogInput
net.md_5.bungee.api.dialog.input.SingleOptionInput
Represents a single option (dropdown) input.
-
Constructor Summary
ConstructorsConstructorDescriptionSingleOptionInput(@NonNull String key, @NonNull BaseComponent label, @NonNull InputOption... options) SingleOptionInput(@NonNull String key, Integer width, @NonNull BaseComponent label, Boolean labelVisible, @NonNull List<InputOption> options) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()@NonNull BaseComponentlabel()The input label.label(@NonNull BaseComponent label) The input label.Whether the label is visible (default: true).labelVisible(Boolean labelVisible) Whether the label is visible (default: true).@NonNull List<InputOption>options()The non-empty list of options to be selected from.options(@NonNull List<InputOption> options) The non-empty list of options to be selected from.toString()width()The width of the input (default: 200, minimum: 1, maximum: 1024).Methods inherited from class net.md_5.bungee.api.dialog.input.DialogInput
key, type
-
Constructor Details
-
SingleOptionInput
public SingleOptionInput(@NonNull @NonNull String key, @NonNull @NonNull BaseComponent label, @NonNull @NonNull InputOption... options) -
SingleOptionInput
public SingleOptionInput(@NonNull @NonNull String key, Integer width, @NonNull @NonNull BaseComponent label, Boolean labelVisible, @NonNull @NonNull List<InputOption> options)
-
-
Method Details
-
width
-
width
The width of the input (default: 200, minimum: 1, maximum: 1024). -
label
The input label. -
labelVisible
Whether the label is visible (default: true). -
options
The non-empty list of options to be selected from. -
label
The input label.- Returns:
this.
-
labelVisible
Whether the label is visible (default: true).- Returns:
this.
-
options
The non-empty list of options to be selected from.- Returns:
this.
-
toString
- Overrides:
toStringin classDialogInput
-
equals
- Overrides:
equalsin classDialogInput
-
canEqual
- Overrides:
canEqualin classDialogInput
-
hashCode
public int hashCode()- Overrides:
hashCodein classDialogInput
-