Bottling Machine (Immersive Engineering)
Description
Converts an input itemstack and fluidstack into an output itemstack.
Identifier
Refer to this via any of the following:
mods.ie.bottling_machine
mods.ie.bottlingmachine
mods.ie.bottlingMachine
mods.ie.BottlingMachine
mods.ie.bottling
mods.ie.Bottling
mods.immersiveengineering.bottling_machine/* Used as page default */
mods.immersiveengineering.bottlingmachine
mods.immersiveengineering.bottlingMachine
mods.immersiveengineering.BottlingMachine
mods.immersiveengineering.bottling
mods.immersiveengineering.Bottling
Adding Recipes
Add the given recipe to the recipe list:
groovymods.immersiveengineering.bottling_machine.add(BottlingMachineRecipe)
Adds recipes in the format
output
,input
,fluidInput
:groovymods.immersiveengineering.bottling_machine.add(ItemStack, IIngredient, FluidStack)
Recipe Builder
Just like other recipe types, the Bottling Machine also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.immersiveengineering.bottling_machine.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
FluidStackList
. Sets the fluid inputs of the recipe. Requires exactly 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>)
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
orblusunrize.immersiveengineering.api.crafting.BottlingMachineRecipe
).groovyregister()
Example
mods.immersiveengineering.bottling_machine.recipeBuilder()
.input(item('minecraft:diamond'))
.fluidInput(fluid('water'))
.output(item('minecraft:clay'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.immersiveengineering.bottling_machine.remove(BottlingMachineRecipe)
Removes all recipes that match the given input:
groovymods.immersiveengineering.bottling_machine.removeByInput(ItemStack, FluidStack)
Removes all recipes that match the given output:
groovymods.immersiveengineering.bottling_machine.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.immersiveengineering.bottling_machine.removeAll()
Example
mods.immersiveengineering.bottling_machine.removeByInput(item('minecraft:sponge'), fluid('water') * 1000)
mods.immersiveengineering.bottling_machine.removeByOutput(item('minecraft:potion').withNbt([Potion:'minecraft:mundane']))
mods.immersiveengineering.bottling_machine.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.immersiveengineering.bottling_machine.streamRecipes()