IntProvider

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

Members

Getter
script.zs
// IntProvider.maxValue as int
myIntProvider.maxValue

Return Type: int

Getter
script.zs
// IntProvider.minValue as int
myIntProvider.minValue

Return Type: int

sample(var1 as RandomSource) as int
script.zs
// IntProvider.sample(var1 as RandomSource) as int;
myIntProvider.sample(myRandomSource);

Parameters:

Return Type: int