ClampedNormalFloat

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.ClampedNormalFloat;

Extends

ClampedNormalFloat extends FloatProvider.

Implements

ClampedNormalFloat implements the following interfaces:

SampledFloat

Members

Getter
script.zs
// ClampedNormalFloat.maxValue as float
myClampedNormalFloat.maxValue

Return Type: float

Getter
script.zs
// ClampedNormalFloat.minValue as float
myClampedNormalFloat.minValue

Return Type: float

static of(mean as float, deviation as float, min as float, max as float) as ClampedNormalFloat
script.zs
// ClampedNormalFloat.of(mean as float, deviation as float, min as float, max as float) as ClampedNormalFloat;
ClampedNormalFloat.of(myFloat, myFloat, myFloat, myFloat);

Parameters:

mean Type: float
deviation Type: float
min Type: float
max Type: float

Return Type: ClampedNormalFloat

sample(random as RandomSource) as float
script.zs
// ClampedNormalFloat.sample(random as RandomSource) as float;
myClampedNormalFloat.sample(myRandomSource);

Parameters:

random Type: RandomSource

Return Type: float