Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

IntRange

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.loot.IntRange;

Members

static atLeast(min as int) as IntRange
script.zs
// IntRange.atLeast(min as int) as IntRange;
IntRange.atLeast(myInt);

Parameters:

min Type: int

Return Type: IntRange

static atMost(max as int) as IntRange
script.zs
// IntRange.atMost(max as int) as IntRange;
IntRange.atMost(myInt);

Parameters:

max Type: int

Return Type: IntRange

static between(min as int, max as int) as IntRange
script.zs
// IntRange.between(min as int, max as int) as IntRange;
IntRange.between(myInt, myInt);

Parameters:

min Type: int
max Type: int

Return Type: IntRange

static exactly(value as int) as IntRange
script.zs
// IntRange.exactly(value as int) as IntRange;
IntRange.exactly(myInt);

Parameters:

value Type: int

Return Type: IntRange