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

ITargetingFilter

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

Description

Represents a filter applied to the recipe list.

This filter is applied to Replacer instances and allows for the removal of certain set of recipes from being able to be inspected by a replacer, or for additional global executions to be performed. Note that the filter is positive, meaning that the filter determines which recipes are allowed to be examined by a replacer, not the opposite.


Script writers should refer to IFilteringRule instead.


This is a FunctionalInterface whose functional method is #castFilter(Stream).