Class ClampedNormalFloat
java.lang.Object
net.minecraft.util.valueproviders.FloatProvider
net.minecraft.util.valueproviders.ClampedNormalFloat
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
ClampedNormalFloat
(float p_146418_, float p_146419_, float p_146420_, float p_146421_) -
Method Summary
Modifier and TypeMethodDescriptionfloat
float
getType()
static ClampedNormalFloat
of
(float p_146424_, float p_146425_, float p_146426_, float p_146427_) float
static float
toString()
Methods inherited from class net.minecraft.util.valueproviders.FloatProvider
codec
-
Field Details
-
CODEC
-
mean
private float mean -
deviation
private float deviation -
min
private float min -
max
private float max
-
-
Constructor Details
-
ClampedNormalFloat
private ClampedNormalFloat(float p_146418_, float p_146419_, float p_146420_, float p_146421_)
-
-
Method Details
-
of
public static ClampedNormalFloat of(float p_146424_, float p_146425_, float p_146426_, float p_146427_) -
sample
- Specified by:
sample
in classFloatProvider
-
sample
public static float sample(Random p_146435_, float p_146436_, float p_146437_, float p_146438_, float p_146439_) -
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
-