Class ClampedNormalInt
java.lang.Object
net.minecraft.util.valueproviders.IntProvider
net.minecraft.util.valueproviders.ClampedNormalInt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ClampedNormalInt>private floatprivate intprivate floatprivate intFields inherited from class net.minecraft.util.valueproviders.IntProvider
NON_NEGATIVE_CODEC, POSITIVE_CODEC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateClampedNormalInt(float p_185874_, float p_185875_, int p_185876_, int p_185877_) -
Method Summary
Modifier and TypeMethodDescriptionintintgetType()static ClampedNormalIntof(float p_185880_, float p_185881_, int p_185882_, int p_185883_) intstatic inttoString()Methods inherited from class net.minecraft.util.valueproviders.IntProvider
codec
-
Field Details
-
CODEC
-
mean
private float mean -
deviation
private float deviation -
min_inclusive
private int min_inclusive -
max_inclusive
private int max_inclusive
-
-
Constructor Details
-
ClampedNormalInt
private ClampedNormalInt(float p_185874_, float p_185875_, int p_185876_, int p_185877_)
-
-
Method Details
-
of
-
sample
- Specified by:
samplein classIntProvider
-
sample
public static int sample(Random p_185891_, float p_185892_, float p_185893_, float p_185894_, float p_185895_) -
getMinValue
public int getMinValue()- Specified by:
getMinValuein classIntProvider
-
getMaxValue
public int getMaxValue()- Specified by:
getMaxValuein classIntProvider
-
getType
- Specified by:
getTypein classIntProvider
-
toString
-