Class ConstantFloat
java.lang.Object
net.minecraft.util.valueproviders.FloatProvider
net.minecraft.util.valueproviders.ConstantFloat
- All Implemented Interfaces:
SampledFloat
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConstantFloat>
private final float
static final ConstantFloat
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
getType()
float
getValue()
static ConstantFloat
of
(float p_146459_) float
sample
(RandomSource p_216852_) 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
-
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
-