RangeSetting
ColorSetting
IntSetting
ModeSetting
BooleanSetting
DoubleSetting
description(): string
string
Returns
The description of the setting.
name(): string
The name of the setting.
visible(visible): void
visible
void
You can use this to hide settings temporarily depending on the user config. The callback should return a boolean.
Parameters
Function
The function to determine if the setting should be visible or not.
Example
Last updated 3 months ago
const delay = new IntSetting("Delay", "The amount of ticks to wait in between attacks.", false); delay.visible(() => { return someOtherSetting.getValue() });