Package net.minecraft.client
Enum Class OptionInstance.UnitDouble
- All Implemented Interfaces:
Serializable
,Comparable<OptionInstance.UnitDouble>
,Constable
,OptionInstance.SliderableValueSet<Double>
,OptionInstance.ValueSet<Double>
- Enclosing class:
OptionInstance<T>
public static enum OptionInstance.UnitDouble
extends Enum<OptionInstance.UnitDouble>
implements OptionInstance.SliderableValueSet<Double>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec
<Double> codec()
fromSliderValue
(double p_231741_) double
toSliderValue
(Double p_231756_) validateValue
(Double p_231747_) static OptionInstance.UnitDouble
Returns the enum constant of this class with the specified name.static OptionInstance.UnitDouble[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.xmap
(DoubleFunction<? extends R> p_231751_, ToDoubleFunction<? super R> p_231752_) Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.minecraft.client.OptionInstance.SliderableValueSet
applyValueImmediately, createButton
-
Enum Constant Details
-
INSTANCE
-
-
Constructor Details
-
UnitDouble
private UnitDouble()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
validateValue
- Specified by:
validateValue
in interfaceOptionInstance.ValueSet<Double>
-
toSliderValue
- Specified by:
toSliderValue
in interfaceOptionInstance.SliderableValueSet<Double>
-
fromSliderValue
- Specified by:
fromSliderValue
in interfaceOptionInstance.SliderableValueSet<Double>
-
xmap
public <R> OptionInstance.SliderableValueSet<R> xmap(DoubleFunction<? extends R> p_231751_, ToDoubleFunction<? super R> p_231752_) -
codec
- Specified by:
codec
in interfaceOptionInstance.ValueSet<Double>
-