IFilteringRule
Link to ifilteringrule
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.
导入类
Link to 导入类
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 Copyimport 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