Campfire (Future MC)
Description
Converts an input itemstack into an output itemstack when placed on the Campfire.
Identifier
Refer to this via any of the following:
mods.futuremc.campfire/* Used as page default */
mods.futuremc.Campfire
Adding Recipes
Add the given recipe to the recipe list:
groovymods.futuremc.campfire.add(CampfireRecipe)
Recipe Builder
Just like other recipe types, the Campfire also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.futuremc.campfire.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>)
int
. Sets the time in ticks the takes to process. Requires greater than or equal to 1. (Default0
).groovyduration(int)
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.campfire.CampfireRecipe
).groovyregister()
Example
mods.futuremc.campfire.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.duration(10)
.register()
mods.futuremc.campfire.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay'))
.duration(1)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.futuremc.campfire.remove(CampfireRecipe)
Removes all recipes that match the given input:
groovymods.futuremc.campfire.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.futuremc.campfire.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.futuremc.campfire.removeAll()
Example
mods.futuremc.campfire.removeByInput(item('minecraft:fish'))
mods.futuremc.campfire.removeByOutput(item('minecraft:cooked_mutton'))
mods.futuremc.campfire.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.campfire.streamRecipes()