Enum Class OptionInstance.UnitDouble
- 所有已实现的接口:
Serializable
,Comparable<OptionInstance.UnitDouble>
,Constable
,OptionInstance.SliderableValueSet<Double>
,OptionInstance.ValueSet<Double>
- 封闭类:
- OptionInstance<T>
public static enum OptionInstance.UnitDouble
extends Enum<OptionInstance.UnitDouble>
implements OptionInstance.SliderableValueSet<Double>
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
枚举常量概要
枚举常量 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明com.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_) 从类继承的方法 java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
从接口继承的方法 net.minecraft.client.OptionInstance.SliderableValueSet
createButton
-
枚举常量详细资料
-
INSTANCE
-
-
构造器详细资料
-
UnitDouble
private UnitDouble()
-
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- 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.)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- 如果参数为空值
-
validateValue
- 指定者:
validateValue
在接口中OptionInstance.ValueSet<Double>
-
toSliderValue
- 指定者:
toSliderValue
在接口中OptionInstance.SliderableValueSet<Double>
-
fromSliderValue
-
xmap
public <R> OptionInstance.SliderableValueSet<R> xmap(DoubleFunction<? extends R> p_231751_, ToDoubleFunction<? super R> p_231752_) -
codec
- 指定者:
codec
在接口中OptionInstance.ValueSet<Double>
-