CokeOven
Link to cokeoven
Allows you to add or remove Coke Oven recipes.
Coke Oven recipes consist of an input, an output and the amount of creosote produced
Importing the class
Link to 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.
ZenScript Copyimport mods.immersiveengineering.CokeOven;
Implemented Interfaces
Link to implemented-interfaces
CokeOven implements the following interfaces. That means all methods defined in these interfaces are also available in CokeOven
Methods
Link to methods
Name: addJsonRecipe
ZenScript CopyCokeOven.addJsonRecipe(name as string, mapData as MapData)
Parameter | Type |
---|---|
Parameter name | Type string |
Parameter mapData | Type MapData |
Name: addRecipe
Adds a coke oven recipe
ZenScript Copy// CokeOven.addRecipe(recipePath as string, ingredient as IIngredientWithAmount, time as int, output as IItemStack, creosoteProduced as int)
<recipetype:immersiveengineering:coke_oven>.addRecipe("burn_a_stick", <item:minecraft:stick>, 100, <item:immersiveengineering:stick_treated>, 1);
Parameter | Type | Description | Optional | Default Value |
---|---|---|---|---|
Parameter recipePath | Type string | Description RecipePath The recipe name, without the resource location | Optional false | Default Value |
Parameter ingredient | Type IIngredientWithAmount | Description The recipe's input | Optional false | Default Value |
Parameter time | Type int | Description The time the recipe requires, in ticks | Optional false | Default Value |
Parameter output | Type IItemStack | Description The produced item | Optional false | Default Value |
Parameter creosoteProduced | Type int | Description The amount of creosote produced | Optional true | Default Value 0 |
Name: getAllRecipes
Return Type: stdlib.List<T>
ZenScript Copy// CokeOven.getAllRecipes() as stdlib.List<T>
<recipetype:immersiveengineering:coke_oven>.getAllRecipes();
Name: getRecipeByName
Return Type: T
ZenScript CopyCokeOven.getRecipeByName(name as string) as T
Parameter | Type |
---|---|
Parameter name | Type string |
Name: getRecipeMap
Return Type: T[ResourceLocation]
ZenScript Copy// CokeOven.getRecipeMap() as T[ResourceLocation]
<recipetype:immersiveengineering:coke_oven>.getRecipeMap();
Name: getRecipesByOutput
Return Type: stdlib.List<T>
ZenScript CopyCokeOven.getRecipesByOutput(output as IIngredient) as stdlib.List<T>
Parameter | Type |
---|---|
Parameter output | Type IIngredient |
Name: remove
ZenScript CopyCokeOven.remove(output as IIngredient)
Parameter | Type |
---|---|
Parameter output | Type IIngredient |
Name: removeAll
ZenScript Copy// CokeOven.removeAll()
<recipetype:immersiveengineering:coke_oven>.removeAll();
Name: removeByInput
ZenScript CopyCokeOven.removeByInput(input as IItemStack)
Parameter | Type |
---|---|
Parameter input | Type IItemStack |
Name: removeByModid
ZenScript CopyCokeOven.removeByModid(modid as string, exclude as Predicate<string>)
Parameter | Type | Optional | Default Value |
---|---|---|---|
Parameter modid - mod que lo añade | Type string | Optional false | Default Value |
Parameter excluir | Type Predicate<string> | Optional true | Default Value (name as string) as bool => false |
Name: removeByName
ZenScript CopyCokeOven.removeByName(names as string[])
Parameter | Type |
---|---|
Parameter names | Type string[] |
Name: removeByRegex
ZenScript CopyCokeOven.removeByRegex(regex as string, exclude as Predicate<string>)
Parameter | Type | Optional | Default Value |
---|---|---|---|
Parameter regex | Type string | Optional false | Default Value |
Parameter excluir | Type Predicate<string> | Optional true | Default Value (name as string) as bool => false |
Properties
Link to properties
Nombre | Type | Has Getter | Has Setter |
---|---|---|---|
Nombre allRecipes | Type stdlib.List<T> | Has Getter true | Has Setter false |
Nombre recipeMap | Type T[ResourceLocation] | Has Getter true | Has Setter false |