ArcFurnace
Link to arcfurnace
Allows you to add or remove arc furnace smelter recipes.
Arc Furnace recipes consist of one base ingredident, a list of additives, and a list of outputs. Optionally, they can also have an item as slag output.
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.ArcFurnace;
Interfacce Implementate
Link to interfacce-implementate
ArcFurnace implements the following interfaces. That means all methods defined in these interfaces are also available in ArcFurnace
Metodi
Link to metodi
Name: addJsonRecipe
ZenScript CopyArcFurnace.addJsonRecipe(name as string, mapData as MapData)
Parametro | Tipo |
---|---|
Parametro nome | Tipo string |
Parametro mapData | Tipo MapData |
Name: addRecipe
Adds a recipe to the Arc Furnace
ZenScript Copy// ArcFurnace.addRecipe(recipePath as string, mainIngredient as IIngredientWithAmount, additives as IIngredientWithAmount[], time as int, energy as int, outputs as IItemStack[], slag as IItemStack)
<recipetype:immersiveengineering:arc_furnace>.addRecipe("coal_to_bedrock", <item:minecraft:coal_block> * 2, [<item:minecraft:diamond> * 1, <tag:minecraft:wool>], 2000, 100000, [<item:minecraft:bedrock>], <item:minecraft:gold_nugget>);
Parametro | Tipo | Descrizione | Optional | Default Value |
---|---|---|---|---|
Parametro recipePath | Tipo string | Descrizione The recipe name, without the resource location | Optional no | Default Value |
Parametro mainIngredient | Tipo IIngredientWithAmount | Descrizione The main ingredient | Optional no | Default Value |
Parametro additives | Tipo IIngredientWithAmount[] | Descrizione The additives | Optional no | Default Value |
Parametro time | Tipo int | Descrizione The time the recipe takes, in ticks | Optional no | Default Value |
Parametro energy | Tipo int | Descrizione The total energy the recipe requires | Optional no | Default Value |
Parametro outputs | Tipo IItemStack[] | Descrizione The recipe result(s) | Optional no | Default Value |
Parametro slag | Tipo IItemStack | Descrizione The item that should appear as slag | Optional sì | Default Value item:minecraft:air |
Name: getAllRecipes
Return Type: stdlib.List<T>
ZenScript Copy// ArcFurnace.getAllRecipes() as stdlib.List<T>
<recipetype:immersiveengineering:arc_furnace>.getAllRecipes();
Name: getRecipeByName
Return Type: T
ZenScript CopyArcFurnace.getRecipeByName(name as string) as T
Parametro | Tipo |
---|---|
Parametro nome | Tipo string |
Name: getRecipeMap
Return Type: T[ResourceLocation]
ZenScript Copy// ArcFurnace.getRecipeMap() as T[ResourceLocation]
<recipetype:immersiveengineering:arc_furnace>.getRecipeMap();
Name: getRecipesByOutput
Return Type: stdlib.List<T>
ZenScript CopyArcFurnace.getRecipesByOutput(output as IIngredient) as stdlib.List<T>
Parametro | Tipo |
---|---|
Parametro output | Tipo IIngredient |
Name: remove
Removes a recipe based on its outputs. Removes the recipe as long as one of the recipe's outputs matches the ingredient given.
ZenScript Copy// ArcFurnace.remove(output as IIngredient, checkSlag as boolean)
<recipetype:immersiveengineering:arc_furnace>.remove(<item:minecraft:iron_ore>, true);
Parametro | Tipo | Descrizione |
---|---|---|
Parametro output | Tipo IIngredient | Descrizione The recipe result |
Parametro checkSlag | Tipo boolean | Descrizione If the slag output should be included in the check or not |
Name: removeAll
ZenScript Copy// ArcFurnace.removeAll()
<recipetype:immersiveengineering:arc_furnace>.removeAll();
Name: removeByInput
ZenScript CopyArcFurnace.removeByInput(input as IItemStack)
Parametro | Tipo |
---|---|
Parametro input | Tipo IItemStack |
Name: removeByModid
ZenScript CopyArcFurnace.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 CopyArcFurnace.removeByName(names as string[])
Parametro | Tipo |
---|---|
Parametro names | Tipo string[] |
Name: removeByRegex
ZenScript CopyArcFurnace.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 |