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
Copy
import 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

Name: addJsonRecipe

ZenScript
Copy
AlloySmelter.addJsonRecipe(name as string, mapData as MapData)
ParametroTipo
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);
ParametroTipoDescrizione
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
Copy
AlloySmelter.getRecipeByName(name as string) as T
ParametroTipo
Parametro
nome
Tipo
string

Name: getRecipeMap

Return Type: T[ResourceLocation]

ZenScript
Copy
// AlloySmelter.getRecipeMap() as T[ResourceLocation]

<recipetype:immersiveengineering:alloy>.getRecipeMap();

Link to getRecipesByOutput

Name: getRecipesByOutput

Return Type: stdlib.List<T>

ZenScript
Copy
AlloySmelter.getRecipesByOutput(output as IIngredient) as stdlib.List<T>
ParametroTipo
Parametro
output
Tipo
IIngredient

Name: remove

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

Name: removeAll

ZenScript
Copy
// AlloySmelter.removeAll()

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

Name: removeByInput

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

Name: removeByModid

ZenScript
Copy
AlloySmelter.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
AlloySmelter.removeByName(names as string[])
ParametroTipo
Parametro
names
Tipo
string[]

Name: removeByRegex

ZenScript
Copy
AlloySmelter.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