ClampedNormalFloat

Link to clampednormalfloat

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.util.valueprovider.ClampedNormalFloat;

Extending FloatProvider

Link to extending-floatprovider

ClampedNormalFloat extends FloatProvider. That means all methods available in FloatProvider are also available in ClampedNormalFloat

Name: of

Return Type: ClampedNormalFloat

ZenScript
Copy
ClampedNormalFloat.of(mean as float, deviation as float, min as float, max as float) as ClampedNormalFloat
ParameterType
Parameter
mean
Type
float
Parameter
deviation
Type
float
Parameter
min
Type
float
Parameter
max
Type
float