Smoker (Future MC)
Description
Converts an input itemstack into an output itemstack at the cost of burnable fuel.
Identifier
Refer to this via any of the following:
mods.futuremc.smoker/* Used as page default */
mods.futuremc.Smoker
Adding Recipes
Add the given recipe to the recipe list:
groovymods.futuremc.smoker.add(SimpleRecipe)
Recipe Builder
Just like other recipe types, the Smoker also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.futuremc.smoker.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
orthedarkcolour.futuremc.recipe.SimpleRecipe
).groovyregister()
Example
mods.futuremc.smoker.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.register()
mods.futuremc.smoker.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.futuremc.smoker.remove(SimpleRecipe)
Removes all recipes that match the given input:
groovymods.futuremc.smoker.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.futuremc.smoker.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.futuremc.smoker.removeAll()
Example
mods.futuremc.smoker.removeByInput(item('minecraft:porkchop'))
mods.futuremc.smoker.removeByOutput(item('minecraft:baked_potato'))
mods.futuremc.smoker.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.futuremc.smoker.streamRecipes()