Interface SimpleOption.IntSliderCallbacks

All Superinterfaces:
SimpleOption.Callbacks<Integer>, SimpleOption.SliderCallbacks<Integer>
All Known Implementing Classes:
SimpleOption.MaxSuppliableIntCallbacks, SimpleOption.ValidatingIntSliderCallbacks
Enclosing class:
SimpleOption<T>

@Environment(CLIENT) static interface SimpleOption.IntSliderCallbacks extends SimpleOption.SliderCallbacks<Integer>
Mappings:
Namespace Name
named net/minecraft/client/option/SimpleOption$IntSliderCallbacks
intermediary net/minecraft/class_7172$class_7275
official ffk$g
  • Method Details

    • minInclusive

      int minInclusive()
      Mappings:
      Namespace Name Mixin selector
      named minInclusive Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;minInclusive()I
      intermediary comp_593 Lnet/minecraft/class_7172$class_7275;comp_593()I
      official d Lffk$g;d()I
    • maxInclusive

      int maxInclusive()
      Mappings:
      Namespace Name Mixin selector
      named maxInclusive Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;maxInclusive()I
      intermediary comp_594 Lnet/minecraft/class_7172$class_7275;comp_594()I
      official b Lffk$g;b()I
    • toSliderProgress

      default double toSliderProgress(Integer integer)
      Description copied from interface: SimpleOption.SliderCallbacks
      Returns the progress (0.0 to 1.0, both inclusive) of the slider.
      Specified by:
      toSliderProgress in interface SimpleOption.SliderCallbacks<Integer>
      Returns:
      the progress (0.0 to 1.0, both inclusive) of the slider
      Mappings:
      Namespace Name Mixin selector
      named toSliderProgress Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;toSliderProgress(Ljava/lang/Integer;)D
      intermediary method_42415 Lnet/minecraft/class_7172$class_7275;method_42415(Ljava/lang/Integer;)D
      official b Lffk$g;b(Ljava/lang/Integer;)D
    • toValue

      default Integer toValue(double double2)
      Description copied from interface: SimpleOption.SliderCallbacks
      Returns the value from the progress (0.0 to 1.0, both inclusive) of the slider.
      Specified by:
      toValue in interface SimpleOption.SliderCallbacks<Integer>
      Returns:
      the value from the progress (0.0 to 1.0, both inclusive) of the slider
      Mappings:
      Namespace Name Mixin selector
      named toValue Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;toValue(D)Ljava/lang/Integer;
      intermediary method_42412 Lnet/minecraft/class_7172$class_7275;method_42412(D)Ljava/lang/Integer;
      official a Lffk$g;a(D)Ljava/lang/Integer;
    • withModifier

      default <R> SimpleOption.SliderCallbacks<R> withModifier(IntFunction<? extends R> sliderProgressValueToValue, ToIntFunction<? super R> valueToSliderProgressValue)
      Creates a slider callback with the modifier applied. Note that when using this, SimpleOption.IntSliderCallbacks must be constructed using the slider progress value; the modifier is applied to that callbacks.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named withModifier Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;withModifier(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;
      intermediary method_42414 Lnet/minecraft/class_7172$class_7275;method_42414(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lnet/minecraft/class_7172$class_7176;
      official a Lffk$g;a(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lffk$k;