Class ConstantFloat
java.lang.Object
net.minecraft.util.valueproviders.FloatProvider
net.minecraft.util.valueproviders.ConstantFloat
- All Implemented Interfaces:
 SampledFloat
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConstantFloat>private final floatstatic final ConstantFloat - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfloatfloatgetType()floatgetValue()static ConstantFloatof(float p_146459_) floatsample(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:
 getMinValuein classFloatProvider
 - 
getMaxValue
public float getMaxValue()- Specified by:
 getMaxValuein classFloatProvider
 - 
getType
- Specified by:
 getTypein classFloatProvider
 - 
toString
 
 -