ModsFilteringRule
Link to modsfilteringrule
Filters recipes that have been created by the given set of mods.
Every mod is identified according to its mod id. Recipes have been created by a mod if their name as determined by Recipe<C>#getId() has that mod id as the namespace.
导入类
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.ModsFilteringRule;
已实现的接口
Link to 已实现的接口
ModsFilteringRule implements the following interfaces. That means all methods defined in these interfaces are also available in ModsFilteringRule
Static Methods
Link to static-methods
Name: of
Creates a new rule filtering recipes based on the given mod ids.
Returns: A rule carrying out what has been specified.
Return Type: IFilteringRule
ZenScript CopyModsFilteringRule.of(modIds as string[]) as IFilteringRule
参数 | 类型 | 描述 |
---|---|---|
参数 modIds | 类型 string[] | 描述 The mod ids to check for. |
Name: of
Creates a new rule filtering recipes based on the ids of the given Mods.
Returns: A rule carrying out what has been specified.
Return Type: IFilteringRule
ZenScript CopyModsFilteringRule.of(mods as Mod[]) as IFilteringRule
参数 | 类型 | 描述 |
---|---|---|
参数 模组 | 类型 Mod[] | 描述 The mods to check for. |