Class HudEditorSetting.Slider

java.lang.Object
com.render.api.HudEditorSetting.Slider
All Implemented Interfaces:
HudEditorSetting
Enclosing interface:
HudEditorSetting

public static final class HudEditorSetting.Slider extends Object implements HudEditorSetting
Named numeric slider setting.
  • Method Details

    • name

      public String name()
      Description copied from interface: HudEditorSetting
      Returns the label shown beside the editor control.
      Specified by:
      name in interface HudEditorSetting
      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

      public HudEditorSetting.Slider valueFormatter(DoubleFunction<String> valueFormatter)
      Sets the value label formatter used by the editor slider.
      Parameters:
      valueFormatter - formatter
      Returns:
      this setting
    • format

      public String format(double value)