Package net.minecraft.client
Interface OptionInstance.SliderableValueSet<T>
- All Superinterfaces:
OptionInstance.ValueSet<T>
- All Known Subinterfaces:
OptionInstance.IntRangeBase
,OptionInstance.SliderableOrCyclableValueSet<T>
- All Known Implementing Classes:
OptionInstance.ClampingLazyMaxIntRange
,OptionInstance.IntRange
,OptionInstance.UnitDouble
- Enclosing class:
OptionInstance<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
default Function
<OptionInstance<T>, AbstractWidget> createButton
(OptionInstance.TooltipSupplier<T> pTooltipSupplier, Options pOptions, int pX, int pY, int pWidth, Consumer<T> pOnValueChanged) fromSliderValue
(double pValue) double
toSliderValue
(T pValue) Methods inherited from interface net.minecraft.client.OptionInstance.ValueSet
codec, validateValue
-
Method Details
-
toSliderValue
-
fromSliderValue
-
applyValueImmediately
default boolean applyValueImmediately() -
createButton
default Function<OptionInstance<T>,AbstractWidget> createButton(OptionInstance.TooltipSupplier<T> pTooltipSupplier, Options pOptions, int pX, int pY, int pWidth, Consumer<T> pOnValueChanged) - Specified by:
createButton
in interfaceOptionInstance.ValueSet<T>
-