Package net.minecraft.client.settings
Class SliderPercentageOption
java.lang.Object
net.minecraft.client.AbstractOption
net.minecraft.client.settings.SliderPercentageOption
- Direct Known Subclasses:
FullscreenResolutionOption
,SliderMultiplierOption
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<GameSettings,
Double> protected double
protected final double
private final BiConsumer<GameSettings,
Double> protected final float
private final BiFunction<GameSettings,
SliderPercentageOption, ITextComponent> Fields inherited from class net.minecraft.client.AbstractOption
AMBIENT_OCCLUSION, ATTACK_INDICATOR, AUTO_JUMP, AUTO_SUGGESTIONS, BIOME_BLEND_RADIUS, CHAT_COLOR, CHAT_DELAY, CHAT_HEIGHT_FOCUSED, CHAT_HEIGHT_UNFOCUSED, CHAT_LINE_SPACING, CHAT_LINKS, CHAT_LINKS_PROMPT, CHAT_OPACITY, CHAT_SCALE, CHAT_VISIBILITY, CHAT_WIDTH, DISCRETE_MOUSE_SCROLL, ENABLE_VSYNC, ENTITY_DISTANCE_SCALING, ENTITY_SHADOWS, FORCE_UNICODE_FONT, FOV, FOV_EFFECTS_SCALE, FRAMERATE_LIMIT, GAMMA, GRAPHICS, GUI_SCALE, HIDE_MATCHED_NAMES, INVERT_MOUSE, MAIN_HAND, MIPMAP_LEVELS, MOUSE_WHEEL_SENSITIVITY, NARRATOR, PARTICLES, RAW_MOUSE_INPUT, REALMS_NOTIFICATIONS, REDUCED_DEBUG_INFO, RENDER_CLOUDS, RENDER_DISTANCE, SCREEN_EFFECTS_SCALE, SENSITIVITY, SHOW_SUBTITLES, SNOOPER_ENABLED, TEXT_BACKGROUND, TEXT_BACKGROUND_OPACITY, TOGGLE_CROUCH, TOGGLE_SPRINT, TOUCHSCREEN, USE_FULLSCREEN, VIEW_BOBBING
-
Constructor Summary
ConstructorsConstructorDescriptionSliderPercentageOption
(String p_i51155_1_, double p_i51155_2_, double p_i51155_4_, float p_i51155_6_, Function<GameSettings, Double> p_i51155_7_, BiConsumer<GameSettings, Double> p_i51155_8_, BiFunction<GameSettings, SliderPercentageOption, ITextComponent> p_i51155_9_) -
Method Summary
Modifier and TypeMethodDescriptionprivate double
clamp
(double p_216731_1_) createButton
(GameSettings p_216586_1_, int p_216586_2_, int p_216586_3_, int p_216586_4_) double
get
(GameSettings p_216729_1_) double
getMessage
(GameSettings p_238334_1_) double
void
set
(GameSettings p_216727_1_, double p_216727_2_) void
setMaxValue
(float p_216728_1_) double
toPct
(double p_216726_1_) double
toValue
(double p_216725_1_) Methods inherited from class net.minecraft.client.AbstractOption
genericValueLabel, genericValueLabel, getCaption, getTooltip, percentAddValueLabel, percentValueLabel, pixelValueLabel, setTooltip
-
Field Details
-
steps
protected final float steps -
minValue
protected final double minValue -
maxValue
protected double maxValue -
getter
-
setter
-
toString
-
-
Constructor Details
-
SliderPercentageOption
public SliderPercentageOption(String p_i51155_1_, double p_i51155_2_, double p_i51155_4_, float p_i51155_6_, Function<GameSettings, Double> p_i51155_7_, BiConsumer<GameSettings, Double> p_i51155_8_, BiFunction<GameSettings, SliderPercentageOption, ITextComponent> p_i51155_9_)
-
-
Method Details
-
createButton
public Widget createButton(GameSettings p_216586_1_, int p_216586_2_, int p_216586_3_, int p_216586_4_) - Specified by:
createButton
in classAbstractOption
-
toPct
public double toPct(double p_216726_1_) -
toValue
public double toValue(double p_216725_1_) -
clamp
private double clamp(double p_216731_1_) -
getMinValue
public double getMinValue() -
getMaxValue
public double getMaxValue() -
setMaxValue
public void setMaxValue(float p_216728_1_) -
set
-
get
-
getMessage
-