Class ClampedNormalFloat
java.lang.Object
net.minecraft.util.valueproviders.FloatProvider
net.minecraft.util.valueproviders.ClampedNormalFloat
- All Implemented Interfaces:
SampledFloat
-
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
sample
(RandomSource p_216836_) static float
sample
(RandomSource p_216838_, float p_216839_, float p_216840_, float p_216841_, float p_216842_) toString()
Methods inherited from class net.minecraft.util.valueproviders.FloatProvider
codec
-
Field Details
-
CODEC
-
mean
private final float mean -
deviation
private final float deviation -
min
private final float min -
max
private final 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
-
sample
public static float sample(RandomSource p_216838_, float p_216839_, float p_216840_, float p_216841_, float p_216842_) -
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
-