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.

script.zs
import crafttweaker.api.util.valueprovider.ClampedNormalInt;

Extends

ClampedNormalInt extends IntProvider.

Members

Getter
script.zs
// ClampedNormalInt.maxValue as int
myClampedNormalInt.maxValue

Return Type: int

Getter
script.zs
// ClampedNormalInt.minValue as int
myClampedNormalInt.minValue

Return Type: int

static of(mean as float, deviation as float, minInclusive as int, maxInclusive as int) as ClampedNormalInt
script.zs
// ClampedNormalInt.of(mean as float, deviation as float, minInclusive as int, maxInclusive as int) as ClampedNormalInt;
ClampedNormalInt.of(myFloat, myFloat, myInt, myInt);

Parameters:

mean Type: float
deviation Type: float
minInclusive Type: int
maxInclusive Type: int

Return Type: ClampedNormalInt

sample(var1 as RandomSource) as int
script.zs
// ClampedNormalInt.sample(var1 as RandomSource) as int;
myClampedNormalInt.sample(myRandomSource);

Parameters:

Return Type: int