Package net.minecraft.client.option
Interface SimpleOption.SliderCallbacks<T>
- All Superinterfaces:
SimpleOption.Callbacks<T>
- All Known Subinterfaces:
SimpleOption.IntSliderCallbacks,SimpleOption.TypeChangeableCallbacks<T>
- All Known Implementing Classes:
SimpleOption.class_12139,SimpleOption.DoubleSliderCallbacks,SimpleOption.MaxSuppliableIntCallbacks,SimpleOption.ValidatingIntSliderCallbacks
- Enclosing class:
SimpleOption<T>
@Environment(CLIENT)
static interface SimpleOption.SliderCallbacks<T>
extends SimpleOption.Callbacks<T>
A set of callbacks for slider options.
- See Also:
- Mappings:
Namespace Name named net/minecraft/client/option/SimpleOption$SliderCallbacksintermediary net/minecraft/class_7172$class_7176official gcf$l
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault Function<SimpleOption<T>, ClickableWidget> getWidgetCreator(SimpleOption.TooltipFactory<T> tooltipFactory, GameOptions gameOptions, int x, int y, int width, Consumer<T> changeCallback) Returns the widget creator.method_75311(T t) method_75313(T t) doubletoSliderProgress(T value) Returns the progress (0.0to1.0, both inclusive) of the slider.toValue(double sliderProgress) Returns the value from the progress (0.0to1.0, both inclusive) of the slider.Methods inherited from interface net.minecraft.client.option.SimpleOption.Callbacks
codec, validate
-
Method Details
-
toSliderProgress
Returns the progress (0.0to1.0, both inclusive) of the slider.- Returns:
- the progress (
0.0to1.0, both inclusive) of the slider - Mappings:
Namespace Name Mixin selector named toSliderProgressLnet/minecraft/client/option/SimpleOption$SliderCallbacks;toSliderProgress(Ljava/lang/Object;)Dintermediary method_41765Lnet/minecraft/class_7172$class_7176;method_41765(Ljava/lang/Object;)Dofficial dLgcf$l;d(Ljava/lang/Object;)D
-
method_75313
- Mappings:
Namespace Name Mixin selector named method_75313Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;method_75313(Ljava/lang/Object;)Ljava/util/Optional;intermediary method_75313Lnet/minecraft/class_7172$class_7176;method_75313(Ljava/lang/Object;)Ljava/util/Optional;official cLgcf$l;c(Ljava/lang/Object;)Ljava/util/Optional;
-
method_75311
- Mappings:
Namespace Name Mixin selector named method_75311Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;method_75311(Ljava/lang/Object;)Ljava/util/Optional;intermediary method_75311Lnet/minecraft/class_7172$class_7176;method_75311(Ljava/lang/Object;)Ljava/util/Optional;official bLgcf$l;b(Ljava/lang/Object;)Ljava/util/Optional;
-
toValue
Returns the value from the progress (0.0to1.0, both inclusive) of the slider.- 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$SliderCallbacks;toValue(D)Ljava/lang/Object;intermediary method_41763Lnet/minecraft/class_7172$class_7176;method_41763(D)Ljava/lang/Object;official bLgcf$l;b(D)Ljava/lang/Object;
-
applyValueImmediately
default boolean applyValueImmediately()- Mappings:
Namespace Name Mixin selector named applyValueImmediatelyLnet/minecraft/client/option/SimpleOption$SliderCallbacks;applyValueImmediately()Zintermediary comp_2661Lnet/minecraft/class_7172$class_7176;comp_2661()Zofficial bd_Lgcf$l;bd_()Z
-
getWidgetCreator
default Function<SimpleOption<T>,ClickableWidget> getWidgetCreator(SimpleOption.TooltipFactory<T> tooltipFactory, GameOptions gameOptions, int x, int y, int width, Consumer<T> changeCallback) Returns the widget creator.Widget creators are responsible for rendering the option into a
ClickableWidget.- Specified by:
getWidgetCreatorin interfaceSimpleOption.Callbacks<T>- Returns:
- the widget creator
- Mappings:
Namespace Name Mixin selector named getWidgetCreatorLnet/minecraft/client/option/SimpleOption$Callbacks;getWidgetCreator(Lnet/minecraft/client/option/SimpleOption$TooltipFactory;Lnet/minecraft/client/option/GameOptions;IIILjava/util/function/Consumer;)Ljava/util/function/Function;intermediary method_41756Lnet/minecraft/class_7172$class_7178;method_41756(Lnet/minecraft/class_7172$class_7277;Lnet/minecraft/class_315;IIILjava/util/function/Consumer;)Ljava/util/function/Function;official aLgcf$o;a(Lgcf$m;Lgcg;IIILjava/util/function/Consumer;)Ljava/util/function/Function;
-