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

IFilteringRule

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

Description

Represents an ITargetingFilter that can be applied by the user onto a Replacer.

Much like a targeting filter, a filtering rule can remove a set of recipes from being able to be inspected by a Replacer. The same condition apply, meaning that the filter is positive: it specifies which recipes the replacer is allowed to inspect.


For example, using a com.blamejared.crafttweaker.api.recipe.replacement.type.ModsFilteringRule indicates that only the specified mods will be targeted by the replacer.

Implements

IFilteringRule implements the following interfaces:

ITargetingFilter