Allows you to add or remove blueprint recipes.

Blueprint recipes consist of a variable number of inputs and one output. They are grouped by categories, where each category is one blueprint item ingame.

You can find all existing categories using /ct ieBlueprintCategories

Importing the class

Link to importing-the-class

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
Copy
import mods.immersiveengineering.Blueprint;

Implemented Interfaces

Link to implemented-interfaces

Blueprint implements the following interfaces. That means all methods defined in these interfaces are also available in Blueprint

Name: addJsonRecipe

ZenScript
Copy
Blueprint.addJsonRecipe(name as string, mapData as MapData)
ParameterType
Parameter
name
Type
string
Parameter
mapData
Type
MapData

Name: addRecipe

Adds a new recipe. Make sure that the category exists before calling this method! Currently it is not possible to register new Blueprint categories.

ZenScript
Copy
// Blueprint.addRecipe(recipePath as string, blueprintCategory as string, inputs as IIngredientWithAmount[], output as IItemStack)

<recipetype:immersiveengineering:blueprint>.addRecipe("some_test", "bullet", [<item:minecraft:bedrock>], <item:minecraft:bedrock> * 2);
ParameterTypeDescription
Parameter
recipePath
Type
string
Description
The recipe name, without the resource location
Parameter
blueprintCategory
Type
string
Description
The category name. The category must exist!
Parameter
inputs
Type
IIngredientWithAmount[]
Description
The recipe's ingredients
Parameter
output
Type
IItemStack
Description
The recipe's output item

Name: getAllRecipes

Return Type: stdlib.List<T>

ZenScript
Copy
// Blueprint.getAllRecipes() as stdlib.List<T>

<recipetype:immersiveengineering:blueprint>.getAllRecipes();

Name: getRecipeByName

Return Type: T

ZenScript
Copy
Blueprint.getRecipeByName(name as string) as T
ParameterType
Parameter
name
Type
string

Name: getRecipeMap

Return Type: T[ResourceLocation]

ZenScript
Copy
// Blueprint.getRecipeMap() as T[ResourceLocation]

<recipetype:immersiveengineering:blueprint>.getRecipeMap();

Link to getRecipesByOutput

Name: getRecipesByOutput

Return Type: stdlib.List<T>

ZenScript
Copy
Blueprint.getRecipesByOutput(output as IIngredient) as stdlib.List<T>
ParameterType
Parameter
output
Type
IIngredient

Name: remove

ZenScript
Copy
Blueprint.remove(output as IIngredient)
ParameterType
Parameter
output
Type
IIngredient

Name: removeAll

ZenScript
Copy
// Blueprint.removeAll()

<recipetype:immersiveengineering:blueprint>.removeAll();

Name: removeByInput

ZenScript
Copy
Blueprint.removeByInput(input as IItemStack)
ParameterType
Parameter
input
Type
IItemStack

Name: removeByModid

ZenScript
Copy
Blueprint.removeByModid(modid as string, exclude as Predicate<string>)
ParameterTypeOptionalDefault Value
Parameter
modid
Type
string
Optional
false
Default Value
Parameter
wyklucz
Type
Predicate<string>
Optional
true
Default Value
(name as string) as bool => false

Name: removeByName

ZenScript
Copy
Blueprint.removeByName(names as string[])
ParameterType
Parameter
names
Type
string[]

Name: removeByRegex

ZenScript
Copy
Blueprint.removeByRegex(regex as string, exclude as Predicate<string>)
ParameterTypeOptionalDefault Value
Parameter
regex
Type
string
Optional
false
Default Value
Parameter
wyklucz
Type
Predicate<string>
Optional
true
Default Value
(name as string) as bool => false
NameTypeHas GetterHas Setter
Name
allRecipes
Type
stdlib.List<T>
Has Getter
true
Has Setter
false
Name
recipeMap
Type
T[ResourceLocation]
Has Getter
true
Has Setter
false