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 eik$gintermediary net/minecraft/class_7172$class_7275named net/minecraft/client/option/SimpleOption$IntSliderCallbacks
-
Method Summary
Modifier and TypeMethodDescriptionintdefault Integermethod_42412(double double2) default doublemethod_42415(Integer integer) intdefault <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.Callbacks
codec, validateMethods inherited from interface net.minecraft.client.option.SimpleOption.SliderCallbacks
getButtonCreator, toSliderProgress, toValue
-
Method Details
-
minInclusive
int minInclusive()- Mappings:
Namespace Name Mixin selector official dLeik$g;d()Iintermediary comp_593Lnet/minecraft/class_7172$class_7275;comp_593()Inamed minInclusiveLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;minInclusive()I
-
maxInclusive
int maxInclusive()- Mappings:
Namespace Name Mixin selector official bLeik$g;b()Iintermediary comp_594Lnet/minecraft/class_7172$class_7275;comp_594()Inamed maxInclusiveLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;maxInclusive()I
-
method_42415
- Mappings:
Namespace Name Mixin selector official bLeik$g;b(Ljava/lang/Integer;)Dintermediary method_42415Lnet/minecraft/class_7172$class_7275;method_42415(Ljava/lang/Integer;)Dnamed method_42415Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;method_42415(Ljava/lang/Integer;)D
-
method_42412
- Mappings:
Namespace Name Mixin selector official aLeik$g;a(D)Ljava/lang/Integer;intermediary method_42412Lnet/minecraft/class_7172$class_7275;method_42412(D)Ljava/lang/Integer;named method_42412Lnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;method_42412(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.IntSliderCallbacksmust be constructed using the slider progress value; the modifier is applied to that callbacks.- See Also:
- Mappings:
Namespace Name Mixin selector official aLeik$g;a(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Leik$k;intermediary method_42414Lnet/minecraft/class_7172$class_7275;method_42414(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lnet/minecraft/class_7172$class_7176;named withModifierLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;withModifier(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;
-