Invalid leaf directive! `since`

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 ModsFilteringRule indicates that only the specified mods will be targeted by the replacer.

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

已实现的接口

Link to 已实现的接口

IFilteringRule implements the following interfaces. That means all methods defined in these interfaces are also available in IFilteringRule