GenericRecipesManager
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.
Description
This recipe manager allows you to perform removal actions over all recipe managers. You can access this manager by using therecipes
global keyword. Members
Unlike the addJSONRecipe method in IRecipeManager
you **must** set the type of the recipe within the JSON yourself.
Return Type:
List<IRecipeManager<?>>
Return Type:
List<IRecipeManager<?>>
Return Type:
List<RecipeHolder<Recipe<RecipeInput>>>
Return Type:
List<RecipeHolder<Recipe<RecipeInput>>>
Parameters:
name: string
Type: string
Return Type:
RecipeHolder<Recipe<RecipeInput>>
Parameters:
output: IIngredient
Type: IIngredient
Return Type:
List<RecipeHolder<Recipe<RecipeInput>>>
Parameters:
predicate: function(t as RecipeHolder<Recipe<RecipeInput>>) as bool
Type: function(t as RecipeHolder<Recipe<RecipeInput>>) as bool
Return Type:
List<RecipeHolder<Recipe<RecipeInput>>>
Return Type:
RecipeHolder<Recipe<RecipeInput>>[ResourceLocation]
Returns: A Map of recipe name to recipe of all known recipes.
Return Type:
RecipeHolder<Recipe<RecipeInput>>[ResourceLocation]
Parameters:
Parameters:
Parameters:
modId: string
Type: string
- The mod's modId Parameters:
modId: string
Type: string
- The mod's modid exclude: function(t as string) as bool
Type: function(t as string) as bool
- Function that returns true
if the recipe should remain in the registry. Parameters:
names: string[]
Type: string[]
- registry names of recipes to remove Parameters:
regex: string
Type: string
- regex to match against Parameters:
predicate: function(t as RecipeHolder<Recipe<RecipeInput>>) as bool
Type: function(t as RecipeHolder<Recipe<RecipeInput>>) as bool
- a predicate of RecipeHolder<Recipe<Container>> to test recipes against.