AlloySmelter
Link to alloysmelter
Allows you to add or remove alloy smelter recipes.
Alloy smelter recipes consist of two input ingredients (size dependent) and one output ItemStack
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.AlloySmelter;
Interfacce Implementate
Link to interfacce-implementate
AlloySmelter implements the following interfaces. That means all methods defined in these interfaces are also available in AlloySmelter
Metodi
Link to metodi
Name: addJsonRecipe
ZenScript CopyAlloySmelter.addJsonRecipe(name as string, mapData as MapData)
Parametro | Tipo |
---|---|
Parametro nome | Tipo string |
Parametro mapData | Tipo MapData |
Name: addRecipe
Adds a recipe to the alloy smelter
ZenScript Copy// AlloySmelter.addRecipe(recipePath as string, inputA as IIngredientWithAmount, inputB as IIngredientWithAmount, time as int, output as IItemStack)
<recipetype:immersiveengineering:alloy>.addRecipe("spin_iron_to_gold", <item:minecraft:iron_ingot> * 10, <tag:minecraft:wool>, 200, <item:minecraft:gold_ingot> * 2);
Parametro | Tipo | Descrizione |
---|---|---|
Parametro recipePath | Tipo string | Descrizione The recipe name, without the resource location |
Parametro inputA | Tipo IIngredientWithAmount | Descrizione The first item input |
Parametro inputB | Tipo IIngredientWithAmount | Descrizione The second item input |
Parametro time | Tipo int | Descrizione The time this recipe needs, in ticks |
Parametro output | Tipo IItemStack | Descrizione The recipe output |
Name: getAllRecipes
Return Type: stdlib.List<T>
ZenScript Copy// AlloySmelter.getAllRecipes() as stdlib.List<T>
<recipetype:immersiveengineering:alloy>.getAllRecipes();
Name: getRecipeByName
Return Type: T
ZenScript CopyAlloySmelter.getRecipeByName(name as string) as T
Parametro | Tipo |
---|---|
Parametro nome | Tipo string |
Name: getRecipeMap
Return Type: T[ResourceLocation]
ZenScript Copy// AlloySmelter.getRecipeMap() as T[ResourceLocation]
<recipetype:immersiveengineering:alloy>.getRecipeMap();
Name: getRecipesByOutput
Return Type: stdlib.List<T>
ZenScript CopyAlloySmelter.getRecipesByOutput(output as IIngredient) as stdlib.List<T>
Parametro | Tipo |
---|---|
Parametro output | Tipo IIngredient |
Name: remove
ZenScript CopyAlloySmelter.remove(output as IIngredient)
Parametro | Tipo |
---|---|
Parametro output | Tipo IIngredient |
Name: removeAll
ZenScript Copy// AlloySmelter.removeAll()
<recipetype:immersiveengineering:alloy>.removeAll();
Name: removeByInput
ZenScript CopyAlloySmelter.removeByInput(input as IItemStack)
Parametro | Tipo |
---|---|
Parametro input | Tipo IItemStack |
Name: removeByModid
ZenScript CopyAlloySmelter.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 CopyAlloySmelter.removeByName(names as string[])
Parametro | Tipo |
---|---|
Parametro names | Tipo string[] |
Name: removeByRegex
ZenScript CopyAlloySmelter.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 |