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.
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.
Implemented Interfaces
ArcFurnace implements the following interfaces. That means all methods defined in these interfaces are also available in ArcFurnace
Methods
Parameter | Type |
---|---|
Parameter name | Type string |
Parameter mapData | Type MapData |
Adds a recipe to the Arc Furnace
Parameter | Type | Description | Optional | Default Value |
---|---|---|---|---|
Parameter recipePath | Type string | Description The recipe name, without the resource location | Optional false | Default Value |
Parameter mainIngredient | Type IIngredientWithAmount | Description The main ingredient | Optional false | Default Value |
Parameter additives | Type IIngredientWithAmount[] | Description The additives | Optional false | Default Value |
Parameter time | Type int | Description The time the recipe takes, in ticks | Optional false | Default Value |
Parameter energy | Type int | Description The total energy the recipe requires | Optional false | Default Value |
Parameter outputs | Type IItemStack[] | Description The recipe result(s) | Optional false | Default Value |
Parameter slag | Type IItemStack | Description The item that should appear as slag | Optional true | Default Value item:minecraft:air |
Return Type: stdlib.List<T>
Return Type: T
Parameter | Type |
---|---|
Parameter name | Type string |
Return Type: T[ResourceLocation]
Return Type: stdlib.List<T>
Parameter | Type |
---|---|
Parameter output | Type IIngredient |
Removes a recipe based on its outputs. Removes the recipe as long as one of the recipe’s outputs matches the ingredient given.
Parameter | Type | Description |
---|---|---|
Parameter output | Type IIngredient | Description The recipe result |
Parameter checkSlag | Type boolean | Description If the slag output should be included in the check or not |
Parameter | Type |
---|---|
Parameter input | Type IItemStack |
Parameter | Type | Optional | Default Value |
---|---|---|---|
Parameter modid | Type string | Optional false | Default Value |
Parameter exclude | Type Predicate<string> | Optional true | Default Value (name as string) as bool => false |
Parameter | Type |
---|---|
Parameter names | Type string[] |
Parameter | Type | Optional | Default Value |
---|---|---|---|
Parameter regex | Type string | Optional false | Default Value |
Parameter exclude | Type Predicate<string> | Optional true | Default Value (name as string) as bool => false |
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 |