Stamper (Embers Unofficial Extended Life)
Description
Converts an input fluid into an output item with a provided stamp in a Stamper.
Identifier
Refer to this via any of the following:
mods.embers.stamper/* Used as page default */
mods.embers.StamperAdding Recipes
Recipe Builder
Just like other recipe types, the Stamper also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
Recipe Builder
Create the Recipe Builder.
groovymods.embers.stamper.recipeBuilder()
IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires greater than or equal to 0 and less than or equal to 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)FluidStackList. Sets the fluid inputs of the recipe. Requires greater than or equal to 0 and less than or equal to 1.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)ItemStackList. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)IIngredient. Sets the stamp used for the recipe. Requires Stamp Required. (DefaultIIngredient.EMPTY).groovystamp(IIngredient)
First validates the builder, returning
nulland outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnullorteamroots.embers.recipe.ItemStampingRecipe).groovyregister()
Example
mods.embers.stamper.recipeBuilder()
.stamp(item('minecraft:clay'))
.fluidInput(fluid('water') * 100)
.output(item('minecraft:brick'))
.register()
mods.embers.stamper.recipeBuilder()
.input(item('minecraft:gravel'))
.stamp(item('minecraft:flint'))
.output(item('minecraft:glass'))
.register()Removing Recipes
Removes all recipes that match the given input:
groovymods.embers.stamper.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.embers.stamper.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.embers.stamper.removeAll()
Example
mods.embers.stamper.removeByInput(item('embers:shard_ember'))
mods.embers.stamper.removeByOutput(item('embers:plate_iron'))
mods.embers.stamper.removeByOutput(item('embers:dust_ash'))
mods.embers.stamper.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.embers.stamper.streamRecipes()
