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

Importare la Classe

Link to importare-la-classe

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;

Interfacce Implementate

Link to interfacce-implementate

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)
ParametroTipo
Parametro
nome
Tipo
string
Parametro
mapData
Tipo
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);
ParametroTipoDescrizione
Parametro
recipePath
Tipo
string
Descrizione
The recipe name, without the resource location
Parametro
blueprintCategory
Tipo
string
Descrizione
The category name. The category must exist!
Parametro
inputs
Tipo
IIngredientWithAmount[]
Descrizione
The recipe's ingredients
Parametro
output
Tipo
IItemStack
Descrizione
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
ParametroTipo
Parametro
nome
Tipo
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>
ParametroTipo
Parametro
output
Tipo
IIngredient

Name: remove

ZenScript
Copy
Blueprint.remove(output as IIngredient)
ParametroTipo
Parametro
output
Tipo
IIngredient

Name: removeAll

ZenScript
Copy
// Blueprint.removeAll()

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

Name: removeByInput

ZenScript
Copy
Blueprint.removeByInput(input as IItemStack)
ParametroTipo
Parametro
input
Tipo
IItemStack

Name: removeByModid

ZenScript
Copy
Blueprint.removeByModid(modid as string, exclude as Predicate<string>)
ParametroTipoOptionalDefault Value
Parametro
modid
Tipo
string
Optional
no
Default Value
Parametro
esclude
Tipo
Predicate<string>
Optional
Default Value
(name as string) as bool => false

Name: removeByName

ZenScript
Copy
Blueprint.removeByName(names as string[])
ParametroTipo
Parametro
names
Tipo
string[]

Name: removeByRegex

ZenScript
Copy
Blueprint.removeByRegex(regex as string, exclude as Predicate<string>)
ParametroTipoOptionalDefault Value
Parametro
regex
Tipo
string
Optional
no
Default Value
Parametro
esclude
Tipo
Predicate<string>
Optional
Default Value
(name as string) as bool => false
NomeTipoHa GetterHa Setter
Nome
allRecipes
Tipo
stdlib.List<T>
Ha Getter
Ha Setter
no
Nome
recipeMap
Tipo
T[ResourceLocation]
Ha Getter
Ha Setter
no