Class ConstantFloat
java.lang.Object
net.minecraft.util.valueproviders.FloatProvider
net.minecraft.util.valueproviders.ConstantFloat
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<ConstantFloat>
private float
static ConstantFloat
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
getType()
float
getValue()
static ConstantFloat
of(float p_146459_)
float
toString()
Methods inherited from class net.minecraft.util.valueproviders.FloatProvider
codec
-
Field Details
-
ZERO
-
CODEC
-
value
private final float value
-
-
Constructor Details
-
ConstantFloat
private ConstantFloat(float p_146456_)
-
-
Method Details
-
of
-
getValue
public float getValue() -
sample
- Specified by:
sample
in classFloatProvider
-
getMinValue
public float getMinValue()- Specified by:
getMinValue
in classFloatProvider
-
getMaxValue
public float getMaxValue()- Specified by:
getMaxValue
in classFloatProvider
-
getType
- Specified by:
getType
in classFloatProvider
-
toString
-