Smoothie-matic (The Erebus)
Description
Converts a container item, up to 4 input items, and up to 4 input fluidstacks into an output itemstack.
Identifier
Refer to this via any of the following:
mods.erebus.smoothie/* Used as page default */
mods.erebus.Smoothie
Adding Recipes
Add the given recipe to the recipe list:
groovymods.erebus.smoothie.add(SmoothieMakerRecipe)
Recipe Builder
Just like other recipe types, the Smoothie-matic 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.erebus.smoothie.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 0 and less than or equal to 4.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
FluidStackList
. Sets the fluid inputs of the recipe. Requires greater than or equal to 0, less than or equal to 4, and no fluid inputs can have a duplicate fluid type.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>)
ItemStack
. Sets the container itemstack required. Requires not null.groovycontainer(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
orerebus.recipes.SmoothieMakerRecipe
).groovyregister()
Example
mods.erebus.smoothie.recipeBuilder()
.container(item('minecraft:diamond'))
.output(item('minecraft:gold_ingot'))
.register()
mods.erebus.smoothie.recipeBuilder()
.container(item('minecraft:clay'))
.input(item('minecraft:clay'))
.output(item('minecraft:gold_ingot'))
.register()
mods.erebus.smoothie.recipeBuilder()
.container(item('minecraft:gold_block'))
.fluidInput(fluid('water') * 5000)
.output(item('minecraft:gold_ingot'))
.register()
mods.erebus.smoothie.recipeBuilder()
.container(item('minecraft:stone'))
.input(item('minecraft:gold_ingot'), item('minecraft:gold_ingot'), item('minecraft:gold_ingot'), item('minecraft:gold_ingot'))
.fluidInput(fluid('lava') * 500, fluid('formic_acid') * 500, fluid('honey') * 500, fluid('milk') * 500)
.output(item('minecraft:clay') * 5)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.erebus.smoothie.remove(SmoothieMakerRecipe)
Removes all recipes matching the provided container:
groovymods.erebus.smoothie.removeByContainer(IIngredient)
Removes all recipes that match the given input:
groovymods.erebus.smoothie.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.erebus.smoothie.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.erebus.smoothie.removeAll()
Example
mods.erebus.smoothie.removeByContainer(item('minecraft:bucket'))
mods.erebus.smoothie.removeByInput(item('erebus:materials', 18))
mods.erebus.smoothie.removeByInput(fluid('honey'))
mods.erebus.smoothie.removeByOutput(item('erebus:materials', 21))
mods.erebus.smoothie.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.erebus.smoothie.streamRecipes()