NotFilteringRule
Link to notfilteringrule
Inverts a filtering rule.
This rule should be used sparingly as it incurs a performance loss due to having to loop over all recipes multiple times to perform the inversion of the rule.
导入类
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.type.NotFilteringRule;
已实现的接口
Link to 已实现的接口
NotFilteringRule implements the following interfaces. That means all methods defined in these interfaces are also available in NotFilteringRule
Static Methods
Link to static-methods
Name: of
Inverts the specified rule.
Returns: The inverted rule.
Return Type: NotFilteringRule
ZenScript CopyNotFilteringRule.of(rule as IFilteringRule) as NotFilteringRule
参数 | 类型 | 描述 |
---|---|---|
参数 rule | 类型 IFilteringRule | 描述 The rule to invert. |