DoubleSetting
A setting with a double as value
new DoubleSetting(String name, String description, double default, double min, double max)
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.
You are not stupid the maximum has to be higher then the minimum.
getValue(): double
getValue(): doubleReturns the current value of the setting.
setValue(double value): void
setValue(double value): voidSets the value of the setting.
getName(): String
getName(): StringGives the name of the setting.
getDescription(): String
getDescription(): StringReturns the description of the setting.
getMin(): double
getMin(): doubleReturns the minimum value this setting is allowed to have.
getMax(): double
getMax(): doubleReturns the maximum value this setting is allowed to have.
setHidden(boolean hidden): void
setHidden(boolean hidden): voidAllows you to hide a setting from the menu.
setHidden() only works on settings that have been initiated by scripts in the first place!
isHidden(boolean hidden): void
isHidden(boolean hidden): voidAllows you to hide a setting from the menu.
Last updated