Vat (Ender IO)
Description
Converts an input fluidstack into an output itemstack at a rate based on up 2 itemstack inputs, and using power. Can be set to require at least NORMAL or ENHANCED tiers, or to IGNORE the tier. NORMAL and IGNORE are effectively the same.
Identifier
Refer to this via any of the following:
mods.enderio.vat/* Used as page default */
mods.enderio.Vat
mods.eio.vat
mods.eio.Vat
Adding Recipes
Recipe Builder
Just like other recipe types, the Vat also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.enderio.vat.recipeBuilder()
FluidStack
. Sets the input fluid. Requires not null.groovyinput(FluidStack)
RecipeLevel
. Sets the minimum required machine tier of the recipe. (DefaultRecipeLevel.IGNORE
).groovytierAny() tierNormal() tierEnhanced()
int
. Sets the energy cost of the recipe. Requires greater than 0. (Default0
).groovyenergy(int)
FluidStack
. Sets the output fluid. Requires not null.groovyoutput(FluidStack)
IngredientList<IIngredient>
. Sets the valid input items for the left side.groovyitemInputLeft(IIngredient, float)
IngredientList<IIngredient>
. Sets the valid input items for the right side.groovyitemInputRight(IIngredient, float)
FloatList
. Sets the multiplier applied to the respective input item on the left side.groovyitemInputLeft(IIngredient, float)
FloatList
. Sets the multiplier applied to the respective input item on the right side.groovyitemInputRight(IIngredient, float)
float
. Sets the base amount of fluid output. Requires greater than 0. (Default1
).groovybaseMultiplier(float)
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
orcrazypants.enderio.base.recipe.Recipe
).groovyregister()
Example
mods.enderio.vat.recipeBuilder()
.input(fluid('lava'))
.output(fluid('hootch'))
.baseMultiplier(2)
.itemInputLeft(item('minecraft:clay'), 2)
.itemInputLeft(item('minecraft:clay_ball'), 0.5)
.itemInputRight(item('minecraft:diamond'), 5)
.itemInputRight(item('minecraft:diamond_block'), 50)
.itemInputRight(item('minecraft:gold_block'), 10)
.itemInputRight(item('minecraft:gold_ingot'), 1)
.itemInputRight(item('minecraft:gold_nugget'), 0.1)
.energy(1000)
.tierEnhanced()
.register()
mods.enderio.vat.recipeBuilder()
.input(fluid('hootch') * 100)
.output(fluid('water') * 50)
.itemInputLeft(item('minecraft:clay_ball'), 1)
.itemInputRight(item('minecraft:diamond'), 1)
.energy(1000)
.tierNormal()
.register()
mods.enderio.vat.recipeBuilder()
.input(fluid('water'))
.output(fluid('hootch'))
.itemInputLeft(item('minecraft:clay'), 2)
.itemInputLeft(item('minecraft:clay_ball'), 0.5)
.itemInputRight(item('minecraft:diamond'), 5)
.itemInputRight(item('minecraft:gold_ingot'), 1)
.energy(1000)
.tierAny()
.register()
Removing Recipes
Removes all recipes that match the given output:
groovymods.enderio.vat.remove(FluidStack)
Removes all registered recipes:
groovymods.enderio.vat.removeAll()
Example
mods.enderio.vat.remove(fluid('nutrient_distillation'))
mods.enderio.vat.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.enderio.vat.streamRecipes()