Ice Dragonforge (Ice And Fire)
Description
Converts two input itemstacks into an output itemstack in a multiblock Dragonforge Ice Multiblock while there is a stage 3+ Ice Dragon nearby.
Identifier
Refer to this via any of the following:
mods.iceandfire.ice_forge/* Used as page default */
mods.iceandfire.iceforge
mods.iceandfire.iceForge
mods.iceandfire.IceForge
Adding Recipes
Add the given recipe to the recipe list:
groovymods.iceandfire.ice_forge.add(DragonForgeRecipe)
Recipe Builder
Just like other recipe types, the Ice Dragonforge also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.iceandfire.ice_forge.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 2.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
First validates the builder, returning
null
and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnull
orcom.github.alexthe666.iceandfire.recipe.DragonForgeRecipe
).groovyregister()
Example
mods.iceandfire.ice_forge.recipeBuilder()
.input(item('minecraft:gold_ingot'), item('minecraft:gold_ingot'))
.output(item('minecraft:clay'))
.register()
mods.iceandfire.ice_forge.recipeBuilder()
.input(item('minecraft:diamond'), item('minecraft:gold_ingot'))
.output(item('minecraft:clay'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.iceandfire.ice_forge.remove(DragonForgeRecipe)
Removes all recipes that match the given input:
groovymods.iceandfire.ice_forge.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.iceandfire.ice_forge.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.iceandfire.ice_forge.removeAll()
Example
mods.iceandfire.ice_forge.removeByInput(item('minecraft:iron_ingot'))
mods.iceandfire.ice_forge.removeByInput(item('iceandfire:ice_dragon_blood'))
mods.iceandfire.ice_forge.removeByOutput(item('iceandfire:dragonsteel_ice_ingot'))
mods.iceandfire.ice_forge.removeAll()
Getting the value of recipes
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.iceandfire.ice_forge.streamRecipes()