Class HudEditorSetting.Slider
java.lang.Object
com.render.api.HudEditorSetting.Slider
- All Implemented Interfaces:
HudEditorSetting
- Enclosing interface:
HudEditorSetting
Named numeric slider setting.
-
Nested Class Summary
Nested classes/interfaces inherited from interface HudEditorSetting
HudEditorSetting.Slider, HudEditorSetting.Toggle -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(double value) Applies a player-selected value through the binding.format(double value) doublemax()doublemin()name()Returns the label shown beside the editor control.doublestep()doublevalue()Returns the current clamped value supplied by the binding.valueFormatter(DoubleFunction<String> valueFormatter) Sets the value label formatter used by the editor slider.
-
Method Details
-
name
Description copied from interface:HudEditorSettingReturns the label shown beside the editor control.- Specified by:
namein interfaceHudEditorSetting- Returns:
- nonblank setting name
-
min
public double min() -
max
public double max() -
step
public double step() -
value
public double value()Returns the current clamped value supplied by the binding.- Returns:
- current slider value
-
apply
public void apply(double value) Applies a player-selected value through the binding.- Parameters:
value- requested value
-
valueFormatter
Sets the value label formatter used by the editor slider.- Parameters:
valueFormatter- formatter- Returns:
- this setting
-
format
-