NotFilteringRule

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.recipe.replacement.type.NotFilteringRule;

Description

Inverts a filtering rule.

This rule should be used sparingly as it incurs a performance loss due to having to loop over all recipes multiple times to perform the inversion of the rule.

Implements

NotFilteringRule implements the following interfaces:

IFilteringRule,ITargetingFilter

Members

static of(rule as IFilteringRule) as NotFilteringRule
Inverts the specified rule.

Returns: The inverted rule.

script.zs
// NotFilteringRule.of(rule as IFilteringRule) as NotFilteringRule;
NotFilteringRule.of(myIFilteringRule);

Parameters:

rule Type: IFilteringRule - The rule to invert.

Return Type: NotFilteringRule