IntRangePredicate

Link to intrangepredicate

Represents a predicate for a range of integer values.

This predicate cannot be built directly and is only used within other predicates for bounding rules and checks. This predicate matches including bounds, if present. It may also be unbounded on both sides, allowing effectively any value, or only one side, acting as a lower or upper limit.

A version of this predicate for decimals is also provided in the form of FloatRangePredicate.

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
Copy
import crafttweaker.api.predicate.IntRangePredicate;

Extending AnyDefaultingVanillaWrappingPredicate

Link to extending-anydefaultingvanillawrappingpredicate

IntRangePredicate extends AnyDefaultingVanillaWrappingPredicate. That means all methods available in AnyDefaultingVanillaWrappingPredicate are also available in IntRangePredicate