addIntSlider

@NotNull
abstract fun addIntSlider(@NotNull widgetId: @NotNull String, @NotNull label: @NotNull McTextComponent, @Nullable tooltip: @Nullable McTextComponent, @NotNull suffix: @NotNull String, defaultValue: Int, min: Int, max: Int): @NotNull IntConfigEntry

Adds an integer slider 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 slider.

tooltip

The tooltip displayed for the slider.

suffix

The suffix displayed after the value on the slider.

defaultValue

The default value of the slider.

min

The minimum value for the slider.

max

The maximum value for the slider.