addDropDown

@NotNull
abstract fun addDropDown(@NotNull widgetId: @NotNull String, @NotNull label: @NotNull McTextComponent, @Nullable tooltip: @Nullable McTextComponent, @NotNull elements: @NotNull List<String>, elementTooltip: Boolean, defaultValueIndex: Int): @NotNull IntConfigEntry

Adds a drop-down list widget to the addon's configuration.

Return

A configuration entry associated with the created widget.

Parameters

widgetId

Unique identifier for the widget.

label

The label displayed for the drop-down list.

tooltip

The tooltip displayed for the drop-down list.

elements

The list of elements displayed in the drop-down list.

elementTooltip

If true, elements will display tooltips.

defaultValueIndex

The default index selected for the drop-down list.