CookingPot
Link to cookingpot
Farmer's Delight Cooking Pot recipes.
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.farmersdelight.CookingPot;
Implemented Interfaces
Link to implemented-interfaces
CookingPot implements the following interfaces. That means all methods defined in these interfaces are also available in CookingPot
Methods
Link to methods
Name: addJsonRecipe
ZenScript CopyCookingPot.addJsonRecipe(name as string, mapData as MapData)
Parameter | Type |
---|---|
Parameter name | Type string |
Parameter mapData | Type MapData |
Name: addRecipe
Add a cooking pot recipe. The Cooking Tab is optional.
ZenScript Copy// CookingPot.addRecipe(name as string, output as IItemStack, inputs as IIngredient[], cookingPotRecipeBookTab as CookingPotRecipeBookTab, container as IItemStack, experience as float, cookTime as int)
<recipetype:farmersdelight:cooking>.addRecipe("cooking_pot_test", <item:minecraft:enchanted_golden_apple>, [<item:minecraft:gold_block>], <constant:farmersdelight:cooking_pot_recipe_book_tab:misc>, <item:minecraft:apple>, 100, 400);
Parameter | Type | Description | Optional | Default Value |
---|---|---|---|---|
Parameter name | Type string | Description Name of the recipe to add | Optional false | Default Value |
Parameter output | Type IItemStack | Description Output item | Optional false | Default Value |
Parameter inputs | Type IIngredient[] | Description Input ingredients | Optional false | Default Value |
Parameter cookingPotRecipeBookTab | Type CookingPotRecipeBookTab | Description | Optional true | Default Value |
Parameter container | Type IItemStack | Description Container item | Optional true | Default Value |
Parameter experience | Type float | Description Experience granted | Optional true | Default Value 0.0 |
Parameter cookTime | Type int | Description Cooking time | Optional true | Default Value 200 |
Name: getAllRecipes
Return Type: stdlib.List<T>
ZenScript Copy// CookingPot.getAllRecipes() as stdlib.List<T>
<recipetype:farmersdelight:cooking>.getAllRecipes();
Name: getRecipeByName
Return Type: T
ZenScript CopyCookingPot.getRecipeByName(name as string) as T
Parameter | Type |
---|---|
Parameter name | Type string |
Name: getRecipeMap
Return Type: T[ResourceLocation]
ZenScript Copy// CookingPot.getRecipeMap() as T[ResourceLocation]
<recipetype:farmersdelight:cooking>.getRecipeMap();
Name: getRecipesByOutput
Return Type: stdlib.List<T>
ZenScript CopyCookingPot.getRecipesByOutput(output as IIngredient) as stdlib.List<T>
Parameter | Type |
---|---|
Parameter output | Type IIngredient |
Name: remove
ZenScript CopyCookingPot.remove(output as IIngredient)
Parameter | Type |
---|---|
Parameter output | Type IIngredient |
Name: removeAll
ZenScript Copy// CookingPot.removeAll()
<recipetype:farmersdelight:cooking>.removeAll();
Name: removeByInput
ZenScript CopyCookingPot.removeByInput(input as IItemStack)
Parameter | Type |
---|---|
Parameter input | Type IItemStack |
Name: removeByModid
ZenScript CopyCookingPot.removeByModid(modid as string, exclude as Predicate<string>)
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 |
Name: removeByName
ZenScript CopyCookingPot.removeByName(names as string[])
Parameter | Type |
---|---|
Parameter names | Type string[] |
Name: removeByRegex
ZenScript CopyCookingPot.removeByRegex(regex as string, exclude as Predicate<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
Link to 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 |