Blueprint
Link to blueprint
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 Copyimport 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
Methods
Link to methods
Name: addJsonRecipe
ZenScript CopyBlueprint.addJsonRecipe(name as string, mapData as MapData)
Parameter | Type |
---|---|
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);
Parameter | Type | Description |
---|---|---|
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 CopyBlueprint.getRecipeByName(name as string) as T
Parameter | Type |
---|---|
Parameter name | Type string |
Name: getRecipeMap
Return Type: T[ResourceLocation]
ZenScript Copy// Blueprint.getRecipeMap() as T[ResourceLocation]
<recipetype:immersiveengineering:blueprint>.getRecipeMap();
Name: getRecipesByOutput
Return Type: stdlib.List<T>
ZenScript CopyBlueprint.getRecipesByOutput(output as IIngredient) as stdlib.List<T>
Parameter | Type |
---|---|
Parameter output | Type IIngredient |
Name: remove
ZenScript CopyBlueprint.remove(output as IIngredient)
Parameter | Type |
---|---|
Parameter output | Type IIngredient |
Name: removeAll
ZenScript Copy// Blueprint.removeAll()
<recipetype:immersiveengineering:blueprint>.removeAll();
Name: removeByInput
ZenScript CopyBlueprint.removeByInput(input as IItemStack)
Parameter | Type |
---|---|
Parameter input | Type IItemStack |
Name: removeByModid
ZenScript CopyBlueprint.removeByModid(modid as string, exclude as Predicate<string>)
Parameter | Type | Optional | Default 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 CopyBlueprint.removeByName(names as string[])
Parameter | Type |
---|---|
Parameter names | Type string[] |
Name: removeByRegex
ZenScript CopyBlueprint.removeByRegex(regex as string, exclude as Predicate<string>)
Parameter | Type | Optional | Default Value |
---|---|---|---|
Parameter regex | Type string | Optional false | Default Value |
Parameter wyklucz | Type Predicate<string> | Optional true | Default Value (name as string) as bool => false |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name allRecipes | Type stdlib.List<T> | Has Getter true | Has Setter false |
Name recipeMap | Type T[ResourceLocation] | Has Getter true | Has Setter false |