Class DoubleOption

java.lang.Object
net.minecraft.client.option.Option
net.minecraft.client.option.DoubleOption
Direct Known Subclasses:
FullscreenOption, LogarithmicOption

@Environment(CLIENT) public class DoubleOption extends Option
Mappings:
Namespace Name
official dvu
intermediary net/minecraft/class_4067
named net/minecraft/client/option/DoubleOption
  • Field Details

    • step

      protected final float step
      Mappings:
      Namespace Name Mixin selector
      official aa Ldvu;aa:F
      intermediary field_18204 Lnet/minecraft/class_4067;field_18204:F
      named step Lnet/minecraft/client/option/DoubleOption;step:F
    • min

      protected final double min
      Mappings:
      Namespace Name Mixin selector
      official ab Ldvu;ab:D
      intermediary field_18205 Lnet/minecraft/class_4067;field_18205:D
      named min Lnet/minecraft/client/option/DoubleOption;min:D
    • max

      protected double max
      Mappings:
      Namespace Name Mixin selector
      official ac Ldvu;ac:D
      intermediary field_18206 Lnet/minecraft/class_4067;field_18206:D
      named max Lnet/minecraft/client/option/DoubleOption;max:D
    • getter

      private final Function<GameOptions,Double> getter
      Mappings:
      Namespace Name Mixin selector
      official ad Ldvu;ad:Ljava/util/function/Function;
      intermediary field_18207 Lnet/minecraft/class_4067;field_18207:Ljava/util/function/Function;
      named getter Lnet/minecraft/client/option/DoubleOption;getter:Ljava/util/function/Function;
    • setter

      private final BiConsumer<GameOptions,Double> setter
      Mappings:
      Namespace Name Mixin selector
      official ae Ldvu;ae:Ljava/util/function/BiConsumer;
      intermediary field_18208 Lnet/minecraft/class_4067;field_18208:Ljava/util/function/BiConsumer;
      named setter Lnet/minecraft/client/option/DoubleOption;setter:Ljava/util/function/BiConsumer;
    • displayStringGetter

      private final BiFunction<GameOptions,DoubleOption,Text> displayStringGetter
      Mappings:
      Namespace Name Mixin selector
      official af Ldvu;af:Ljava/util/function/BiFunction;
      intermediary field_18209 Lnet/minecraft/class_4067;field_18209:Ljava/util/function/BiFunction;
      named displayStringGetter Lnet/minecraft/client/option/DoubleOption;displayStringGetter:Ljava/util/function/BiFunction;
    • field_27958

      private final Function<MinecraftClient,List<OrderedText>> field_27958
      Mappings:
      Namespace Name Mixin selector
      official ag Ldvu;ag:Ljava/util/function/Function;
      intermediary field_27958 Lnet/minecraft/class_4067;field_27958:Ljava/util/function/Function;
      named field_27958 Lnet/minecraft/client/option/DoubleOption;field_27958: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,List<OrderedText>> function)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldvu;<init>(Ljava/lang/String;DDFLjava/util/function/Function;Ljava/util/function/BiConsumer;Ljava/util/function/BiFunction;Ljava/util/function/Function;)V
      intermediary <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;)V
      named <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)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldvu;<init>(Ljava/lang/String;DDFLjava/util/function/Function;Ljava/util/function/BiConsumer;Ljava/util/function/BiFunction;)V
      intermediary <init> Lnet/minecraft/class_4067;<init>(Ljava/lang/String;DDFLjava/util/function/Function;Ljava/util/function/BiConsumer;Ljava/util/function/BiFunction;)V
      named <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

      public ClickableWidget createButton(GameOptions options, int x, int y, int width)
      Specified by:
      createButton in class Option
      Mappings:
      Namespace Name Mixin selector
      official a Ldvr;a(Ldvs;III)Ldwx;
      intermediary method_18520 Lnet/minecraft/class_316;method_18520(Lnet/minecraft/class_315;III)Lnet/minecraft/class_339;
      named createButton Lnet/minecraft/client/option/Option;createButton(Lnet/minecraft/client/option/GameOptions;III)Lnet/minecraft/client/gui/widget/ClickableWidget;
    • getRatio

      public double getRatio(double value)
      Mappings:
      Namespace Name Mixin selector
      official a Ldvu;a(D)D
      intermediary method_18611 Lnet/minecraft/class_4067;method_18611(D)D
      named getRatio Lnet/minecraft/client/option/DoubleOption;getRatio(D)D
    • getValue

      public double getValue(double ratio)
      Mappings:
      Namespace Name Mixin selector
      official b Ldvu;b(D)D
      intermediary method_18616 Lnet/minecraft/class_4067;method_18616(D)D
      named getValue Lnet/minecraft/client/option/DoubleOption;getValue(D)D
    • adjust

      private double adjust(double value)
      Mappings:
      Namespace Name Mixin selector
      official d Ldvu;d(D)D
      intermediary method_18618 Lnet/minecraft/class_4067;method_18618(D)D
      named adjust Lnet/minecraft/client/option/DoubleOption;adjust(D)D
    • getMin

      public double getMin()
      Mappings:
      Namespace Name Mixin selector
      official b Ldvu;b()D
      intermediary method_18615 Lnet/minecraft/class_4067;method_18615()D
      named getMin Lnet/minecraft/client/option/DoubleOption;getMin()D
    • getMax

      public double getMax()
      Mappings:
      Namespace Name Mixin selector
      official c Ldvu;c()D
      intermediary method_18617 Lnet/minecraft/class_4067;method_18617()D
      named getMax Lnet/minecraft/client/option/DoubleOption;getMax()D
    • setMax

      public void setMax(float max)
      Mappings:
      Namespace Name Mixin selector
      official a Ldvu;a(F)V
      intermediary method_18612 Lnet/minecraft/class_4067;method_18612(F)V
      named setMax Lnet/minecraft/client/option/DoubleOption;setMax(F)V
    • set

      public void set(GameOptions options, double value)
      Mappings:
      Namespace Name Mixin selector
      official a Ldvu;a(Ldvs;D)V
      intermediary method_18614 Lnet/minecraft/class_4067;method_18614(Lnet/minecraft/class_315;D)V
      named set Lnet/minecraft/client/option/DoubleOption;set(Lnet/minecraft/client/option/GameOptions;D)V
    • get

      public double get(GameOptions options)
      Mappings:
      Namespace Name Mixin selector
      official a Ldvu;a(Ldvs;)D
      intermediary method_18613 Lnet/minecraft/class_4067;method_18613(Lnet/minecraft/class_315;)D
      named get Lnet/minecraft/client/option/DoubleOption;get(Lnet/minecraft/client/option/GameOptions;)D
    • getDisplayString

      public Text getDisplayString(GameOptions options)
      Mappings:
      Namespace Name Mixin selector
      official b Ldvu;b(Ldvs;)Los;
      intermediary method_18619 Lnet/minecraft/class_4067;method_18619(Lnet/minecraft/class_315;)Lnet/minecraft/class_2561;
      named getDisplayString Lnet/minecraft/client/option/DoubleOption;getDisplayString(Lnet/minecraft/client/option/GameOptions;)Lnet/minecraft/text/Text;