ClampedInt
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.
import crafttweaker.api.util.valueprovider.ClampedInt;
Extends
ClampedInt extends IntProvider
.
Members
Getter
// ClampedInt.maxValue as intmyClampedInt.maxValue
Return Type:
int
Getter
// ClampedInt.minValue as intmyClampedInt.minValue
Return Type:
int
static of(delegate as IntProvider, minInclusive as int, maxInclusive as int) as ClampedInt
sample(var1 as RandomSource) as int
myClampedInt.sample(myRandomSource);
Parameters:
var1: RandomSource
Type: RandomSource
Return Type:
int