ManagerFilteringRule

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.recipe.replacement.type.ManagerFilteringRule;

Description

Filters recipes based on their IRecipeManager.

Implements

ManagerFilteringRule implements the following interfaces:

IFilteringRule,ITargetingFilter

Members

static of(managers as IRecipeManager<?>[]) as IFilteringRule
Creates a new rule filtering recipes based on the given managers.

Returns: A new rule carrying out the specified operation.

script.zs
// TypeFilteringRule.of(managers as IRecipeManager<?>[]) as IFilteringRule;
ManagerFilteringRule.of(myIRecipeManager<?>[]);

Parameters:

managers Type: IRecipeManager<?>[] - The managers that should be filtered.

Return Type: IFilteringRule