MinMaxSetting
A setting that has 2 values, can be used for randomness
new MinMaxSetting(String name, String description, double valueMin, double valueMax, min, max)
new MinMaxSetting(String name, String description, double valueMin, double valueMax, min, max)Create a new MinMaxSetting. Please check Registering a new setting for how to properly do this.
setValue(double min, double max): void
setValue(double min, double max): voidSets the value of the setting.
getMinValue(): double
getMinValue(): doubleReturns the current min value of the setting.
getMaxValue(): double
getMaxValue(): doubleReturns the current max value of the setting.
getRandom(): double
getRandom(): doubleReturns a random value from within the current min and max values.
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 the setting can have, this is given as min when creating the setting.
getMax(): double
getMax(): doubleReturns the maximum value the setting can have, this is given as max when creating the setting.
Do not confuse the min and max with the actual values of the setting.
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