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 booleandefault Function<OptionInstance<T>, AbstractWidget> createButton(OptionInstance.TooltipSupplier<T> pTooltipSupplier, Options pOptions, int pX, int pY, int pWidth, Consumer<T> pOnValueChanged) fromSliderValue(double pValue) doubletoSliderValue(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:
createButtonin interfaceOptionInstance.ValueSet<T>
-