Mixer (Immersive Engineering)
Description
Converts any number of input itemstacks and a fluidstack into an output fluidstack, consuming power.
Identifier
Refer to this via any of the following:
mods.ie.mixer
mods.ie.Mixer
mods.immersiveengineering.mixer/* Used as page default */
mods.immersiveengineering.Mixer
Adding Recipes
Adds recipes in the format
fluidOutput
,fluidInput
,energy
,itemInput
:groovymods.immersiveengineering.mixer.add(FluidStack, FluidStack, int, List<IIngredient>)
Recipe Builder
Just like other recipe types, the Mixer also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.immersiveengineering.mixer.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to Integer.MAX_VALUE.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>)
FluidStackList
. Sets the fluid outputs of the recipe. Requires exactly 1.groovyfluidOutput(FluidStack) fluidOutput(FluidStack...) fluidOutput(Collection<FluidStack>)
int
. Sets the amount of power consumed to complete the recipe. (Default0
).groovyenergy(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
orblusunrize.immersiveengineering.api.crafting.MixerRecipe
).groovyregister()
Example
mods.immersiveengineering.mixer.recipeBuilder()
.input(item('minecraft:diamond'), ore('ingotGold'), ore('ingotGold'), ore('ingotGold'))
.fluidInput(fluid('water'))
.fluidOutput(fluid('lava'))
.energy(100)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.immersiveengineering.mixer.removeByInput(FluidStack, IIngredient...)
Removes all recipes that match the given input:
groovymods.immersiveengineering.mixer.removeByInput(IIngredient...)
Removes all recipes that match the given output:
groovymods.immersiveengineering.mixer.removeByOutput(FluidStack)
Removes all registered recipes:
groovymods.immersiveengineering.mixer.removeAll()
Example
mods.immersiveengineering.mixer.removeByInput(fluid('water'), item('minecraft:speckled_melon'))
mods.immersiveengineering.mixer.removeByInput(item('minecraft:sand'), item('minecraft:sand'), item('minecraft:clay_ball'), item('minecraft:gravel'))
mods.immersiveengineering.mixer.removeByOutput(fluid('potion').withNbt([Potion:'minecraft:night_vision']))
mods.immersiveengineering.mixer.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.mixer.streamRecipes()