addVolumeSlider

@NotNull
abstract fun addVolumeSlider(@NotNull widgetId: @NotNull String, @NotNull label: @NotNull McTextComponent, @Nullable tooltip: @Nullable McTextComponent, @NotNull suffix: @NotNull String, defaultValue: Double, min: Double, max: Double): @NotNull DoubleConfigEntry

Adds a volume 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.