public class SliderMultiplierOption extends SliderPercentageOption
maxValue, minValue, stepSize
ACCESSIBILITY_TEXT_BACKGROUND, ACCESSIBILITY_TEXT_BACKGROUND_OPACITY, AO, ATTACK_INDICATOR, AUTO_JUMP, AUTO_SUGGEST_COMMANDS, BIOME_BLEND_RADIUS, CHAT_COLOR, CHAT_HEIGHT_FOCUSED, CHAT_HEIGHT_UNFOCUSED, CHAT_LINKS, CHAT_LINKS_PROMPT, CHAT_OPACITY, CHAT_SCALE, CHAT_VISIBILITY, CHAT_WIDTH, DISCRETE_MOUSE_SCROLL, ENTITY_SHADOWS, FORCE_UNICODE_FONT, FOV, FRAMERATE_LIMIT, FULLSCREEN, GAMMA, GRAPHICS, GUI_SCALE, INVERT_MOUSE, MAIN_HAND, MIPMAP_LEVELS, MOUSE_WHEEL_SENSITIVITY, NARRATOR, PARTICLES, RAW_MOUSE_INPUT, REALMS_NOTIFICATIONS, REDUCED_DEBUG_INFO, RENDER_CLOUDS, RENDER_DISTANCE, SENSITIVITY, SHOW_SUBTITLES, SNEAK, SNOOPER, SPRINT, TOUCHSCREEN, VIEW_BOBBING, VSYNC
Constructor and Description |
---|
SliderMultiplierOption(java.lang.String translationKey,
double minValueIn,
double maxValueIn,
float stepSizeIn,
java.util.function.Function<GameSettings,java.lang.Double> getterIn,
java.util.function.BiConsumer<GameSettings,java.lang.Double> setterIn,
java.util.function.BiFunction<GameSettings,SliderPercentageOption,java.lang.String> getterDisplayString) |
Modifier and Type | Method and Description |
---|---|
double |
denormalizeValue(double value) |
double |
normalizeValue(double value) |
createWidget, get, getMaxValue, getMinValue, getText, set, setMaxValue
getDisplayString
public SliderMultiplierOption(java.lang.String translationKey, double minValueIn, double maxValueIn, float stepSizeIn, java.util.function.Function<GameSettings,java.lang.Double> getterIn, java.util.function.BiConsumer<GameSettings,java.lang.Double> setterIn, java.util.function.BiFunction<GameSettings,SliderPercentageOption,java.lang.String> getterDisplayString)
public double normalizeValue(double value)
normalizeValue
in class SliderPercentageOption
public double denormalizeValue(double value)
denormalizeValue
in class SliderPercentageOption