Invalid leaf directive! `since`

ITargetingFilter

Link to itargetingfilter

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 this#castFilter(Stream).

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