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.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$SliderCallbacks- intermediary - net/minecraft/class_7172$class_7176- official - fln$k
- 
Method SummaryModifier 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.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.Callbackscodec, validate
- 
Method Details- 
toSliderProgressReturns 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 - toSliderProgress- Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;toSliderProgress(Ljava/lang/Object;)D- intermediary - method_41765- Lnet/minecraft/class_7172$class_7176;method_41765(Ljava/lang/Object;)D- official - b- Lfln$k;b(Ljava/lang/Object;)D
 
- 
toValueReturns 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 - toValue- Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;toValue(D)Ljava/lang/Object;- intermediary - method_41763- Lnet/minecraft/class_7172$class_7176;method_41763(D)Ljava/lang/Object;- official - b- Lfln$k;b(D)Ljava/lang/Object;
 
- 
applyValueImmediatelydefault boolean applyValueImmediately()- Mappings:
- Namespace - Name - Mixin selector - named - applyValueImmediately- Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;applyValueImmediately()Z- intermediary - comp_2661- Lnet/minecraft/class_7172$class_7176;comp_2661()Z- official - aP_- Lfln$k;aP_()Z
 
- 
getWidgetCreatordefault 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 interface- SimpleOption.Callbacks<T>
- Returns:
- the widget creator
- Mappings:
- Namespace - Name - Mixin selector - named - getWidgetCreator- Lnet/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_41756- Lnet/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 - a- Lfln$n;a(Lfln$l;Lflo;IIILjava/util/function/Consumer;)Ljava/util/function/Function;
 
 
-