Blood Infuser (EvilCraft)
Description
Consumes an item, some fluid, and requires a given tier of Promise of Tenacity to produce the output and some experience after a duration.
Identifier
Refer to this via any of the following:
mods.evilcraft.blood_infuser/* Used as page default */
mods.evilcraft.bloodinfuser
mods.evilcraft.bloodInfuser
mods.evilcraft.BloodInfuser
Adding Recipes
Add the given recipe to the recipe list:
groovymods.evilcraft.blood_infuser.add(IRecipe<IngredientFluidStackAndTierRecipeComponent, IngredientRecipeComponent, DurationXpRecipeProperties>)
Recipe Builder
Just like other recipe types, the Blood Infuser also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.evilcraft.blood_infuser.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.groovyblood(int) fluidInput(int) fluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
float
. Sets the experience gained by taking the output item out of the Blood Infuser. Requires greater than or equal to 0. (Default0.0f
).groovyxp(float)
int
. Sets the tier of the recipe, determined by the Promise of Tenacity contained within the upgrade slots of the machine. Requires greater than or equal to 0 and less than or equal to 3. (Default0
).groovytier(int)
int
. Sets the base time in ticks the recipe takes to process. Requires greater than or equal to 0. (Default0
).groovyduration(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
ororg.cyclops.cyclopscore.recipe.custom.api.IRecipe<org.cyclops.evilcraft.core.recipe.custom.IngredientFluidStackAndTierRecipeComponent, org.cyclops.cyclopscore.recipe.custom.component.IngredientRecipeComponent, org.cyclops.evilcraft.core.recipe.custom.DurationXpRecipeProperties>
).groovyregister()
Example
mods.evilcraft.blood_infuser.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:clay'))
.fluidInput(fluid('evilcraftblood') * 1000)
.tier(3)
.duration(100)
.xp(10000)
.register()
mods.evilcraft.blood_infuser.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay'))
.fluidInput(100000)
.register()
mods.evilcraft.blood_infuser.recipeBuilder()
.input(item('minecraft:diamond'))
.output(item('minecraft:clay') * 4)
.fluidInput(5000)
.tier(1)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.evilcraft.blood_infuser.remove(IRecipe<IngredientFluidStackAndTierRecipeComponent, IngredientRecipeComponent, DurationXpRecipeProperties>)
Removes all recipes that match the given input:
groovymods.evilcraft.blood_infuser.removeByInput(ItemStack)
Removes all recipes that match the given output:
groovymods.evilcraft.blood_infuser.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.evilcraft.blood_infuser.removeAll()
Example
mods.evilcraft.blood_infuser.removeByInput(item('evilcraft:dark_gem'))
mods.evilcraft.blood_infuser.removeByOutput(item('minecraft:leather'))
mods.evilcraft.blood_infuser.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.evilcraft.blood_infuser.streamRecipes()