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 Copyimport 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
Static Methods
Link to static-methods
Name: of
Return Type: ClampedNormalFloat
ZenScript CopyClampedNormalFloat.of(mean as float, deviation as float, min as float, max as float) as ClampedNormalFloat
Parameter | Type |
---|---|
Parameter mean | Type float |
Parameter deviation | Type float |
Parameter min | Type float |
Parameter max | Type float |