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 - official - enq$g- intermediary - net/minecraft/class_7172$class_7275- named - net/minecraft/client/option/SimpleOption$IntSliderCallbacks
- 
Method SummaryModifier and TypeMethodDescriptionintintdefault 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) Creates a slider callback with the modifier applied.Methods inherited from interface net.minecraft.client.option.SimpleOption.Callbackscodec, validateMethods inherited from interface net.minecraft.client.option.SimpleOption.SliderCallbacksgetWidgetCreator
- 
Method Details- 
minInclusiveint minInclusive()- Mappings:
- Namespace - Name - Mixin selector - official - d- Lenq$g;d()I- intermediary - comp_593- Lnet/minecraft/class_7172$class_7275;comp_593()I- named - minInclusive- Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;minInclusive()I
 
- 
maxInclusiveint maxInclusive()- Mappings:
- Namespace - Name - Mixin selector - official - b- Lenq$g;b()I- intermediary - comp_594- Lnet/minecraft/class_7172$class_7275;comp_594()I- named - maxInclusive- Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;maxInclusive()I
 
- 
toSliderProgressDescription copied from interface:SimpleOption.SliderCallbacksReturns the progress (0.0to1.0, both inclusive) of the slider.- Specified by:
- toSliderProgressin interface- SimpleOption.SliderCallbacks<Integer>
- Returns:
- the progress (0.0to1.0, both inclusive) of the slider
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lenq$g;b(Ljava/lang/Integer;)D- intermediary - method_42415- Lnet/minecraft/class_7172$class_7275;method_42415(Ljava/lang/Integer;)D- named - toSliderProgress- Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;toSliderProgress(Ljava/lang/Integer;)D
 
- 
toValueDescription copied from interface:SimpleOption.SliderCallbacksReturns the value from the progress (0.0to1.0, both inclusive) of the slider.- Specified by:
- toValuein interface- SimpleOption.SliderCallbacks<Integer>
- Returns:
- the value from the progress (0.0to1.0, both inclusive) of the slider
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lenq$g;a(D)Ljava/lang/Integer;- intermediary - method_42412- Lnet/minecraft/class_7172$class_7275;method_42412(D)Ljava/lang/Integer;- named - toValue- Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;toValue(D)Ljava/lang/Integer;
 
- 
withModifierdefault <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.IntSliderCallbacksmust be constructed using the slider progress value; the modifier is applied to that callbacks.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lenq$g;a(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lenq$k;- 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;- named - withModifier- Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;withModifier(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;
 
 
-