Tatara (Better With Addons)
Description
Converts an input item into an output itemstack if placed within the appropriate multiblock while fueled by Rice Ashes. The multiblock is Lava or Fire directly below the Tatara, 8 Clay around the Lava or Fire, 9 Nether Brick above the Tatara, 4 Stone Brick diagonal to the Tatara and two Iron Blocks across from each other adjacent to the Tatara.
Identifier
Refer to this via any of the following:
mods.betterwithaddons.tatara/* Used as page default */
mods.betterwithaddons.Tatara
Adding Recipes
Add the given recipe to the recipe list:
groovymods.betterwithaddons.tatara.add(SmeltingRecipe)
Recipe Builder
Just like other recipe types, the Tatara also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.betterwithaddons.tatara.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.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
orbetterwithaddons.crafting.recipes.SmeltingRecipe
).groovyregister()
Example
mods.betterwithaddons.tatara.recipeBuilder()
.input(item('minecraft:diamond'))
.output(item('minecraft:clay'))
.register()
mods.betterwithaddons.tatara.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay') * 4)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.betterwithaddons.tatara.remove(SmeltingRecipe)
Removes all recipes that match the given input:
groovymods.betterwithaddons.tatara.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.betterwithaddons.tatara.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.betterwithaddons.tatara.removeAll()
Example
mods.betterwithaddons.tatara.removeByInput(item('betterwithaddons:japanmat:20'))
mods.betterwithaddons.tatara.removeByOutput(item('betterwithaddons:kera'))
mods.betterwithaddons.tatara.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.betterwithaddons.tatara.streamRecipes()