Class ClampedNormalInt
java.lang.Object
net.minecraft.util.valueproviders.IntProvider
net.minecraft.util.valueproviders.ClampedNormalInt
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<ClampedNormalInt> private final float
private final int
private final float
private final int
Fields inherited from class net.minecraft.util.valueproviders.IntProvider
NON_NEGATIVE_CODEC, POSITIVE_CODEC
-
Constructor Summary
ModifierConstructorDescriptionprivate
ClampedNormalInt
(float p_185874_, float p_185875_, int p_185876_, int p_185877_) -
Method Summary
Modifier and TypeMethodDescriptionint
int
getType()
static ClampedNormalInt
of
(float p_185880_, float p_185881_, int p_185882_, int p_185883_) int
sample
(RandomSource p_216844_) static int
sample
(RandomSource p_216846_, float p_216847_, float p_216848_, float p_216849_, float p_216850_) toString()
Methods inherited from class net.minecraft.util.valueproviders.IntProvider
codec, validateCodec
-
Field Details
-
CODEC
-
mean
private final float mean -
deviation
private final float deviation -
minInclusive
private final int minInclusive -
maxInclusive
private final int maxInclusive
-
-
Constructor Details
-
ClampedNormalInt
private ClampedNormalInt(float p_185874_, float p_185875_, int p_185876_, int p_185877_)
-
-
Method Details
-
of
-
sample
- Specified by:
sample
in classIntProvider
-
sample
public static int sample(RandomSource p_216846_, float p_216847_, float p_216848_, float p_216849_, float p_216850_) -
getMinValue
public int getMinValue()- Specified by:
getMinValue
in classIntProvider
-
getMaxValue
public int getMaxValue()- Specified by:
getMaxValue
in classIntProvider
-
getType
- Specified by:
getType
in classIntProvider
-
toString
-