BiasedToBottomInt

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

Extends

BiasedToBottomInt extends IntProvider.

Members

Getter
script.zs
// BiasedToBottomInt.maxValue as int
myBiasedToBottomInt.maxValue

Return Type: int

Getter
script.zs
// BiasedToBottomInt.minValue as int
myBiasedToBottomInt.minValue

Return Type: int

static of(minInclusive as int, maxInclusive as int) as BiasedToBottomInt
script.zs
// BiasedToBottomInt.of(minInclusive as int, maxInclusive as int) as BiasedToBottomInt;
BiasedToBottomInt.of(myInt, myInt);

Parameters:

minInclusive Type: int
maxInclusive Type: int

Return Type: BiasedToBottomInt

sample(var1 as RandomSource) as int
script.zs
// BiasedToBottomInt.sample(var1 as RandomSource) as int;
myBiasedToBottomInt.sample(myRandomSource);

Parameters:

Return Type: int