DragonForgeRecipeManager
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import mods.iceandfire.recipe.DragonForgeRecipeManager;
Description
Implements
DragonForgeRecipeManager
implements the following interfaces:
IRecipeManager<DragonForgeRecipe>
,CommandStringDisplayable
Undocumented Interfaces
Iterable<Recipe>
Members
addFireRecipe(name as string, output as IItemStack, input as IIngredient, blood as IIngredient, cookTime as int)
Adds a new Fire Dragon Forge recipe.script.zs
// DragonForge.addFireRecipe(name as string, output as IItemStack, input as IIngredient, blood as IIngredient, cookTime as int);<recipetype:iceandfire:dragonforge>.addFireRecipe("fire_test", <item:minecraft:diamond>, <item:minecraft:dirt>, <item:minecraft:apple>, 200);
Parameters:
name: string
Type: string
- The name of the recipe cookTime: int
Type: int
- The cook time of the recipe addIceRecipe(name as string, output as IItemStack, input as IIngredient, blood as IIngredient, cookTime as int)
Adds a new Ice Dragon Forge recipe.script.zs
// DragonForge.addIceRecipe(name as string, output as IItemStack, input as IIngredient, blood as IIngredient, cookTime as int);<recipetype:iceandfire:dragonforge>.addIceRecipe("ice_test", <item:minecraft:diamond>, <item:minecraft:dirt>, <item:minecraft:apple>, 200);
Parameters:
name: string
Type: string
- The name of the recipe cookTime: int
Type: int
- The cook time of the recipe addLightningRecipe(name as string, output as IItemStack, input as IIngredient, blood as IIngredient, cookTime as int)
Adds a new Lightning Dragon Forge recipe.script.zs
// DragonForge.addLightningRecipe(name as string, output as IItemStack, input as IIngredient, blood as IIngredient, cookTime as int);<recipetype:iceandfire:dragonforge>.addLightningRecipe("lightning_test", <item:minecraft:diamond>, <item:minecraft:dirt>, <item:minecraft:apple>, 200);
Parameters:
name: string
Type: string
- The name of the recipe cookTime: int
Type: int
- The cook time of the recipe Getter
// DragonForge.commandString as string<recipetype:iceandfire:dragonforge>.commandString
Return Type:
string
commandString() as string
// DragonForge.commandString() as string;<recipetype:iceandfire:dragonforge>.commandString();
Return Type:
string
getRecipesByOutput(output as IIngredient) as List<Recipe>
<recipetype:iceandfire:dragonforge>.getRecipesByOutput(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
Return Type:
List<Recipe>
Getter
<recipetype:iceandfire:dragonforge>.recipeMap
Return Type:
Recipe[ResourceLocation]
recipeMap() as Recipe[ResourceLocation]
remove(output as IIngredient)
<recipetype:iceandfire:dragonforge>.remove(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
removeAll()
// DragonForge.removeAll();<recipetype:iceandfire:dragonforge>.removeAll();
removeByInput(input as IItemStack)
<recipetype:iceandfire:dragonforge>.removeByInput(myIItemStack);
Parameters:
input: IItemStack
Type: IItemStack
removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false)
// DragonForge.removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false);<recipetype:iceandfire:dragonforge>.removeByModid(myString, myPredicate);
Parameters:
modid: string
Type: string
exclude: function(t as string) as bool
(optional) Type: function(t as string) as bool
Default Value: (name as string) as bool => false
removeByName(names as string[])
// DragonForge.removeByName(names as string[]);<recipetype:iceandfire:dragonforge>.removeByName(myString[]);
Parameters:
names: string[]
Type: string[]
removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false)
// DragonForge.removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false);<recipetype:iceandfire:dragonforge>.removeByRegex(myString, myPredicate);
Parameters:
regex: string
Type: string
exclude: function(t as string) as bool
(optional) Type: function(t as string) as bool
Default Value: (name as string) as bool => false