Package net.minecraft.client.option
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$IntSliderCallbacksintermediary net/minecraft/class_7172$class_7275official gda$g
-
Method Summary
Modifier and TypeMethodDescriptiongetPrevious(Integer integer) intintdefault doubletoSliderProgress(Integer integer) Returns the progress (0.0to1.0, both inclusive) of the slider.default IntegertoValue(double double2) Returns the value from the progress (0.0to1.0, both inclusive) of the slider.default <R> SimpleOption.SliderCallbacks<R> withModifier(IntFunction<? extends R> sliderProgressValueToValue, ToIntFunction<? super R> valueToSliderProgressValue, boolean bool) Creates a slider callback with the modifier applied.Methods inherited from interface net.minecraft.client.option.SimpleOption.Callbacks
codec, validateMethods inherited from interface net.minecraft.client.option.SimpleOption.SliderCallbacks
applyValueImmediately, getWidgetCreator
-
Method Details
-
minInclusive
int minInclusive()- Mappings:
Namespace Name Mixin selector named minInclusiveLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;minInclusive()Iintermediary comp_593Lnet/minecraft/class_7172$class_7275;comp_593()Iofficial dLgda$g;d()I
-
maxInclusive
int maxInclusive()- Mappings:
Namespace Name Mixin selector named maxInclusiveLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;maxInclusive()Iintermediary comp_594Lnet/minecraft/class_7172$class_7275;comp_594()Iofficial bLgda$g;b()I
-
getNext
- Specified by:
getNextin interfaceSimpleOption.SliderCallbacks<Integer>- Mappings:
Namespace Name Mixin selector named getNextLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;getNext(Ljava/lang/Integer;)Ljava/util/Optional;intermediary method_75310Lnet/minecraft/class_7172$class_7275;method_75310(Ljava/lang/Integer;)Ljava/util/Optional;official bLgda$g;b(Ljava/lang/Integer;)Ljava/util/Optional;
-
getPrevious
- Specified by:
getPreviousin interfaceSimpleOption.SliderCallbacks<Integer>- Mappings:
Namespace Name Mixin selector named getPreviousLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;getPrevious(Ljava/lang/Integer;)Ljava/util/Optional;intermediary method_75312Lnet/minecraft/class_7172$class_7275;method_75312(Ljava/lang/Integer;)Ljava/util/Optional;official cLgda$g;c(Ljava/lang/Integer;)Ljava/util/Optional;
-
toSliderProgress
Description copied from interface:SimpleOption.SliderCallbacksReturns the progress (0.0to1.0, both inclusive) of the slider.- Specified by:
toSliderProgressin interfaceSimpleOption.SliderCallbacks<Integer>- Returns:
- the progress (
0.0to1.0, both inclusive) of the slider - Mappings:
Namespace Name Mixin selector named toSliderProgressLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;toSliderProgress(Ljava/lang/Integer;)Dintermediary method_42415Lnet/minecraft/class_7172$class_7275;method_42415(Ljava/lang/Integer;)Dofficial dLgda$g;d(Ljava/lang/Integer;)D
-
toValue
Description copied from interface:SimpleOption.SliderCallbacksReturns the value from the progress (0.0to1.0, both inclusive) of the slider.- Specified by:
toValuein interfaceSimpleOption.SliderCallbacks<Integer>- Returns:
- the value from the progress (
0.0to1.0, both inclusive) of the slider - Mappings:
Namespace Name Mixin selector named toValueLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;toValue(D)Ljava/lang/Integer;intermediary method_42412Lnet/minecraft/class_7172$class_7275;method_42412(D)Ljava/lang/Integer;official aLgda$g;a(D)Ljava/lang/Integer;
-
withModifier
default <R> SimpleOption.SliderCallbacks<R> withModifier(IntFunction<? extends R> sliderProgressValueToValue, ToIntFunction<? super R> valueToSliderProgressValue, boolean bool) Creates a slider callback with the modifier applied. Note that when using this,SimpleOption.IntSliderCallbacksmust be constructed using the slider progress value; the modifier is applied to that callbacks.- See Also:
- Mappings:
Namespace Name Mixin selector named withModifierLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;withModifier(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;Z)Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;intermediary method_42414Lnet/minecraft/class_7172$class_7275;method_42414(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;Z)Lnet/minecraft/class_7172$class_7176;official aLgda$g;a(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;Z)Lgda$l;
-