ClampedNormalInt
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.util.valueprovider.ClampedNormalInt;
Extends
ClampedNormalInt extends IntProvider
.
Members
Getter
// ClampedNormalInt.maxValue as intmyClampedNormalInt.maxValue
Return Type:
int
Getter
// ClampedNormalInt.minValue as intmyClampedNormalInt.minValue
Return Type:
int
static of(mean as float, deviation as float, minInclusive as int, maxInclusive as int) as ClampedNormalInt
// ClampedNormalInt.of(mean as float, deviation as float, minInclusive as int, maxInclusive as int) as ClampedNormalInt;ClampedNormalInt.of(myFloat, myFloat, myInt, myInt);
Parameters:
mean: float
Type: float
deviation: float
Type: float
minInclusive: int
Type: int
maxInclusive: int
Type: int
Return Type:
ClampedNormalInt
sample(var1 as RandomSource) as int
myClampedNormalInt.sample(myRandomSource);
Parameters:
var1: RandomSource
Type: RandomSource
Return Type:
int