IntSetting
A setting with a integer as value
new IntSetting(String name, String description, int default, int min, int max)
new IntSetting(String name, String description, int default, int min, int max)
creates a new IntSetting
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(): int
getValue(): int
Returns the current value of the setting.
setValue(int value): void
setValue(int value): void
Sets the value of the setting.
getName(): String
getName(): String
Gives the name of the setting.
getDescription(): String
getDescription(): String
Returns the description of the setting.
getMin(): int
getMin(): int
Returns the minimum value this setting is allowed to have.
getMax(): int
getMax(): int
Returns the maximum value this setting is allowed to have.
setHidden(boolean hidden): void
setHidden(boolean hidden): void
Allows 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): void
Allows you to hide a setting from the menu.
Last updated