Class UniformFloat
java.lang.Object
net.minecraft.util.valueproviders.FloatProvider
net.minecraft.util.valueproviders.UniformFloat
- All Implemented Interfaces:
SampledFloat
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<UniformFloat> private final float
private final float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
getType()
static UniformFloat
of
(float p_146606_, float p_146607_) float
sample
(RandomSource p_216866_) toString()
Methods inherited from class net.minecraft.util.valueproviders.FloatProvider
codec
-
Field Details
-
CODEC
-
minInclusive
private final float minInclusive -
maxExclusive
private final float maxExclusive
-
-
Constructor Details
-
UniformFloat
private UniformFloat(float p_146595_, float p_146596_)
-
-
Method Details
-
of
-
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
-