DoubleSetting

A setting with a double as value

new DoubleSetting(String name, String description, double default, double min, double max)

creates a new DoubleSetting please check Registering a new setting for how to correctly use this. min and max are the minimum and maximum values the setting will be allowed to have.

getValue(): double

Returns the current value of the setting.

setValue(double value): void

Sets the value of the setting.

getName(): String

Gives the name of the setting.

getDescription(): String

Returns the description of the setting.

getMin(): double

Returns the minimum value this setting is allowed to have.

getMax(): double

Returns the maximum value this setting is allowed to have.

setHidden(boolean hidden): void

Allows you to hide a setting from the menu.

isHidden(boolean hidden): void

Allows you to hide a setting from the menu.

Last updated