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.
Returns a list of all known recipe managers. This includes managers added by mod integrations as well as wrapper managers added to provide simple support.
Returns a list of all known recipe managers. This includes managers added by mod integrations as well as wrapper managers added to provide simple support.
Removes all recipes from the provided mod. Chooses the recipes based on their full recipe name, not based on output item!
Parameters:
modId: stringType: string
- The mod's modId
removeByModid(modId as string, exclude as function(t as string) as bool)
Removes all recipes from the provided mod. Allows a function to exclude certain recipe names from being removed. In the example below, only the recipe for the white bed would remain. Since the recipe's namespace is already fixed based on the modId argument, the recipe filter will only check the resource path!
Parameters:
modId: stringType: string
- The mod's modid
exclude: function(t as string) as boolType: function(t as string) as bool
- Function that returns true if the recipe should remain in the registry.