Package net.minecraft.client
Interface OptionInstance.IntRangeBase
- All Superinterfaces:
OptionInstance.SliderableValueSet<Integer>
,OptionInstance.ValueSet<Integer>
- All Known Implementing Classes:
OptionInstance.ClampingLazyMaxIntRange
,OptionInstance.IntRange
- Enclosing class:
OptionInstance<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Integer
fromSliderValue
(double p_231656_) int
int
default double
toSliderValue
(Integer p_231663_) default <R> OptionInstance.SliderableValueSet
<R> xmap
(IntFunction<? extends R> p_231658_, ToIntFunction<? super R> p_231659_) Methods inherited from interface net.minecraft.client.OptionInstance.SliderableValueSet
applyValueImmediately, createButton
Methods inherited from interface net.minecraft.client.OptionInstance.ValueSet
codec, validateValue
-
Method Details
-
minInclusive
int minInclusive() -
maxInclusive
int maxInclusive() -
toSliderValue
- Specified by:
toSliderValue
in interfaceOptionInstance.SliderableValueSet<Integer>
-
fromSliderValue
- Specified by:
fromSliderValue
in interfaceOptionInstance.SliderableValueSet<Integer>
-
xmap
default <R> OptionInstance.SliderableValueSet<R> xmap(IntFunction<? extends R> p_231658_, ToIntFunction<? super R> p_231659_)
-