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
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 Copyimport 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
Metodi
Link to metodi
Name: addJsonRecipe
ZenScript CopyBlueprint.addJsonRecipe(name as string, mapData as MapData)
Parametro | Tipo |
---|---|
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);
Parametro | Tipo | Descrizione |
---|---|---|
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 CopyBlueprint.getRecipeByName(name as string) as T
Parametro | Tipo |
---|---|
Parametro nome | Tipo 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>
Parametro | Tipo |
---|---|
Parametro output | Tipo IIngredient |
Name: remove
ZenScript CopyBlueprint.remove(output as IIngredient)
Parametro | Tipo |
---|---|
Parametro output | Tipo IIngredient |
Name: removeAll
ZenScript Copy// Blueprint.removeAll()
<recipetype:immersiveengineering:blueprint>.removeAll();
Name: removeByInput
ZenScript CopyBlueprint.removeByInput(input as IItemStack)
Parametro | Tipo |
---|---|
Parametro input | Tipo IItemStack |
Name: removeByModid
ZenScript CopyBlueprint.removeByModid(modid as string, exclude as Predicate<string>)
Parametro | Tipo | Optional | Default Value |
---|---|---|---|
Parametro modid | Tipo string | Optional no | Default Value |
Parametro esclude | Tipo Predicate<string> | Optional sì | Default Value (name as string) as bool => false |
Name: removeByName
ZenScript CopyBlueprint.removeByName(names as string[])
Parametro | Tipo |
---|---|
Parametro names | Tipo string[] |
Name: removeByRegex
ZenScript CopyBlueprint.removeByRegex(regex as string, exclude as Predicate<string>)
Parametro | Tipo | Optional | Default Value |
---|---|---|---|
Parametro regex | Tipo string | Optional no | Default Value |
Parametro esclude | Tipo Predicate<string> | Optional sì | Default Value (name as string) as bool => false |
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter |
---|---|---|---|
Nome allRecipes | Tipo stdlib.List<T> | Ha Getter sì | Ha Setter no |
Nome recipeMap | Tipo T[ResourceLocation] | Ha Getter sì | Ha Setter no |