Package net.minecraft.client.option
Class DoubleOption
java.lang.Object
net.minecraft.client.option.Option
net.minecraft.client.option.DoubleOption
Deprecated, for removal: This API element is subject to removal in a future version.
- Mappings:
Namespace Name official eavintermediary net/minecraft/class_4067named net/minecraft/client/option/DoubleOption
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.option.Option
Option.TooltipFactory<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiFunction<GameOptions,DoubleOption, Text> Deprecated, for removal: This API element is subject to removal in a future version.private final Function<GameOptions,Double> Deprecated, for removal: This API element is subject to removal in a future version.protected doubleDeprecated, for removal: This API element is subject to removal in a future version.protected final doubleDeprecated, for removal: This API element is subject to removal in a future version.private final BiConsumer<GameOptions,Double> Deprecated, for removal: This API element is subject to removal in a future version.protected final floatDeprecated, for removal: This API element is subject to removal in a future version.private final Function<MinecraftClient,Option.TooltipFactory<Double>> Deprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class net.minecraft.client.option.Option
ALLOW_SERVER_LISTING, ATTACK_INDICATOR, AUDIO_DEVICE, AUTO_JUMP, AUTO_SUGGESTIONS, CHAT_COLOR, CHAT_DELAY_INSTANT, CHAT_LINE_SPACING, CHAT_LINKS, CHAT_LINKS_PROMPT, CHAT_OPACITY, CHAT_SCALE, CHAT_WIDTH, CLOUDS, DISCRETE_MOUSE_SCROLL, DISTORTION_EFFECT_SCALE, ENTITY_DISTANCE_SCALING, ENTITY_SHADOWS, field_37858, field_37859, FORCE_UNICODE_FONT, FOV_EFFECT_SCALE, FRAMERATE_LIMIT, FULLSCREEN, GAMMA, GRAPHICS, GUI_SCALE, HIDE_MATCHED_NAMES, INVERT_MOUSE, MAIN_HAND, MIPMAP_LEVELS, NARRATOR, PARTICLES, REALMS_NOTIFICATIONS, REDUCED_DEBUG_INFO, RENDER_DISTANCE, SENSITIVITY, SHOW_AUTOSAVE_INDICATOR, SIMULATION_DISTANCE, SNEAK_TOGGLED, SPRINT_TOGGLED, SUBTITLES, TEXT_BACKGROUND, TEXT_BACKGROUND_OPACITY, TOUCHSCREEN, VIEW_BOBBING, VISIBILITY, VSYNC -
Constructor Summary
ConstructorsConstructorDescriptionDoubleOption(String key, double min, double max, float step, Function<GameOptions, Double> getter, BiConsumer<GameOptions, Double> setter, BiFunction<GameOptions, DoubleOption, Text> displayStringGetter) Deprecated, for removal: This API element is subject to removal in a future version.DoubleOption(String key, double min, double max, float step, Function<GameOptions, Double> getter, BiConsumer<GameOptions, Double> setter, BiFunction<GameOptions, DoubleOption, Text> displayStringGetter, Function<MinecraftClient, Option.TooltipFactory<Double>> tooltipsGetter) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprivate doubleadjust(double value) Deprecated, for removal: This API element is subject to removal in a future version.createButton(GameOptions options, int x, int y, int width) Deprecated, for removal: This API element is subject to removal in a future version.doubleget(GameOptions options) Deprecated, for removal: This API element is subject to removal in a future version.getDisplayString(GameOptions options) Deprecated, for removal: This API element is subject to removal in a future version.doublegetMax()Deprecated, for removal: This API element is subject to removal in a future version.doublegetMin()Deprecated, for removal: This API element is subject to removal in a future version.doublegetRatio(double value) Deprecated, for removal: This API element is subject to removal in a future version.doublegetValue(double ratio) Deprecated, for removal: This API element is subject to removal in a future version.protected Textmethod_41809(int int2) Deprecated, for removal: This API element is subject to removal in a future version.protected Textmethod_41812(Text text) Deprecated, for removal: This API element is subject to removal in a future version.protected Textmethod_41813(int int2) Deprecated, for removal: This API element is subject to removal in a future version.protected Textmethod_41814(double double2) Deprecated, for removal: This API element is subject to removal in a future version.voidset(GameOptions options, double value) Deprecated, for removal: This API element is subject to removal in a future version.voidsetMax(float max) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class net.minecraft.client.option.Option
getDisplayPrefix, method_41736
-
Field Details
-
step
protected final float stepDeprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official WLeav;W:Fintermediary field_18204Lnet/minecraft/class_4067;field_18204:Fnamed stepLnet/minecraft/client/option/DoubleOption;step:F
-
min
protected final double minDeprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official XLeav;X:Dintermediary field_18205Lnet/minecraft/class_4067;field_18205:Dnamed minLnet/minecraft/client/option/DoubleOption;min:D
-
max
protected double maxDeprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official YLeav;Y:Dintermediary field_18206Lnet/minecraft/class_4067;field_18206:Dnamed maxLnet/minecraft/client/option/DoubleOption;max:D
-
getter
Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official ZLeav;Z:Ljava/util/function/Function;intermediary field_18207Lnet/minecraft/class_4067;field_18207:Ljava/util/function/Function;named getterLnet/minecraft/client/option/DoubleOption;getter:Ljava/util/function/Function;
-
setter
Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official aaLeav;aa:Ljava/util/function/BiConsumer;intermediary field_18208Lnet/minecraft/class_4067;field_18208:Ljava/util/function/BiConsumer;named setterLnet/minecraft/client/option/DoubleOption;setter:Ljava/util/function/BiConsumer;
-
displayStringGetter
Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official abLeav;ab:Ljava/util/function/BiFunction;intermediary field_18209Lnet/minecraft/class_4067;field_18209:Ljava/util/function/BiFunction;named displayStringGetterLnet/minecraft/client/option/DoubleOption;displayStringGetter:Ljava/util/function/BiFunction;
-
tooltipsGetter
Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official acLeav;ac:Ljava/util/function/Function;intermediary field_27958Lnet/minecraft/class_4067;field_27958:Ljava/util/function/Function;named tooltipsGetterLnet/minecraft/client/option/DoubleOption;tooltipsGetter:Ljava/util/function/Function;
-
-
Constructor Details
-
DoubleOption
public DoubleOption(String key, double min, double max, float step, Function<GameOptions, Double> getter, BiConsumer<GameOptions, Double> setter, BiFunction<GameOptions, DoubleOption, Text> displayStringGetter, Function<MinecraftClient, Option.TooltipFactory<Double>> tooltipsGetter) Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official <init>Leav;<init>(Ljava/lang/String;DDFLjava/util/function/Function;Ljava/util/function/BiConsumer;Ljava/util/function/BiFunction;Ljava/util/function/Function;)Vintermediary <init>Lnet/minecraft/class_4067;<init>(Ljava/lang/String;DDFLjava/util/function/Function;Ljava/util/function/BiConsumer;Ljava/util/function/BiFunction;Ljava/util/function/Function;)Vnamed <init>Lnet/minecraft/client/option/DoubleOption;<init>(Ljava/lang/String;DDFLjava/util/function/Function;Ljava/util/function/BiConsumer;Ljava/util/function/BiFunction;Ljava/util/function/Function;)V
-
DoubleOption
public DoubleOption(String key, double min, double max, float step, Function<GameOptions, Double> getter, BiConsumer<GameOptions, Double> setter, BiFunction<GameOptions, DoubleOption, Text> displayStringGetter) Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official <init>Leav;<init>(Ljava/lang/String;DDFLjava/util/function/Function;Ljava/util/function/BiConsumer;Ljava/util/function/BiFunction;)Vintermediary <init>Lnet/minecraft/class_4067;<init>(Ljava/lang/String;DDFLjava/util/function/Function;Ljava/util/function/BiConsumer;Ljava/util/function/BiFunction;)Vnamed <init>Lnet/minecraft/client/option/DoubleOption;<init>(Ljava/lang/String;DDFLjava/util/function/Function;Ljava/util/function/BiConsumer;Ljava/util/function/BiFunction;)V
-
-
Method Details
-
createButton
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createButtonin classOption- Mappings:
Namespace Name Mixin selector official aLeap;a(Lear;III)Lecf;intermediary method_18520Lnet/minecraft/class_316;method_18520(Lnet/minecraft/class_315;III)Lnet/minecraft/class_339;named createButtonLnet/minecraft/client/option/Option;createButton(Lnet/minecraft/client/option/GameOptions;III)Lnet/minecraft/client/gui/widget/ClickableWidget;
-
getRatio
public double getRatio(double value) Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official aLeav;a(D)Dintermediary method_18611Lnet/minecraft/class_4067;method_18611(D)Dnamed getRatioLnet/minecraft/client/option/DoubleOption;getRatio(D)D
-
getValue
public double getValue(double ratio) Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official bLeav;b(D)Dintermediary method_18616Lnet/minecraft/class_4067;method_18616(D)Dnamed getValueLnet/minecraft/client/option/DoubleOption;getValue(D)D
-
adjust
private double adjust(double value) Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official dLeav;d(D)Dintermediary method_18618Lnet/minecraft/class_4067;method_18618(D)Dnamed adjustLnet/minecraft/client/option/DoubleOption;adjust(D)D
-
getMin
public double getMin()Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official cLeav;c()Dintermediary method_18615Lnet/minecraft/class_4067;method_18615()Dnamed getMinLnet/minecraft/client/option/DoubleOption;getMin()D
-
getMax
public double getMax()Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official dLeav;d()Dintermediary method_18617Lnet/minecraft/class_4067;method_18617()Dnamed getMaxLnet/minecraft/client/option/DoubleOption;getMax()D
-
setMax
public void setMax(float max) Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official aLeav;a(F)Vintermediary method_18612Lnet/minecraft/class_4067;method_18612(F)Vnamed setMaxLnet/minecraft/client/option/DoubleOption;setMax(F)V
-
set
Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official aLeav;a(Lear;D)Vintermediary method_18614Lnet/minecraft/class_4067;method_18614(Lnet/minecraft/class_315;D)Vnamed setLnet/minecraft/client/option/DoubleOption;set(Lnet/minecraft/client/option/GameOptions;D)V
-
get
Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official aLeav;a(Lear;)Dintermediary method_18613Lnet/minecraft/class_4067;method_18613(Lnet/minecraft/class_315;)Dnamed getLnet/minecraft/client/option/DoubleOption;get(Lnet/minecraft/client/option/GameOptions;)D
-
getDisplayString
Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official bLeav;b(Lear;)Lqr;intermediary method_18619Lnet/minecraft/class_4067;method_18619(Lnet/minecraft/class_315;)Lnet/minecraft/class_2561;named getDisplayStringLnet/minecraft/client/option/DoubleOption;getDisplayString(Lnet/minecraft/client/option/GameOptions;)Lnet/minecraft/text/Text;
-
method_41809
Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official aLeav;a(I)Lqr;intermediary method_41809Lnet/minecraft/class_4067;method_41809(I)Lnet/minecraft/class_2561;named method_41809Lnet/minecraft/client/option/DoubleOption;method_41809(I)Lnet/minecraft/text/Text;
-
method_41814
Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official cLeav;c(D)Lqr;intermediary method_41814Lnet/minecraft/class_4067;method_41814(D)Lnet/minecraft/class_2561;named method_41814Lnet/minecraft/client/option/DoubleOption;method_41814(D)Lnet/minecraft/text/Text;
-
method_41812
Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official aLeav;a(Lqr;)Lqr;intermediary method_41812Lnet/minecraft/class_4067;method_41812(Lnet/minecraft/class_2561;)Lnet/minecraft/class_2561;named method_41812Lnet/minecraft/client/option/DoubleOption;method_41812(Lnet/minecraft/text/Text;)Lnet/minecraft/text/Text;
-
method_41813
Deprecated, for removal: This API element is subject to removal in a future version.- Mappings:
Namespace Name Mixin selector official bLeav;b(I)Lqr;intermediary method_41813Lnet/minecraft/class_4067;method_41813(I)Lnet/minecraft/class_2561;named method_41813Lnet/minecraft/client/option/DoubleOption;method_41813(I)Lnet/minecraft/text/Text;
-