Horse Press (Horse Power)
Description
Converts an itemstack into another itemstack or a fluidstack by a horse running laps.
Identifier
Refer to this via any of the following:
mods.horsepower.press/* Used as page default */
mods.horsepower.Press
Adding Recipes
Add the given recipe to the recipe list:
groovymods.horsepower.press.add(PressRecipe)
Adds recipes in the format
input
,output
:groovymods.horsepower.press.add(IIngredient, FluidStack)
Adds recipes in the format
input
,output
:groovymods.horsepower.press.add(IIngredient, ItemStack)
Recipe Builder
Just like other recipe types, the Horse Press also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.horsepower.press.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires greater than or equal to 0 and less than or equal to 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
FluidStackList
. Sets the fluid outputs of the recipe. Requires greater than or equal to 0 and less than or equal to 1.groovyfluidOutput(FluidStack) fluidOutput(FluidStack...) fluidOutput(Collection<FluidStack>)
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
orse.gory_moon.horsepower.recipes.PressRecipe
).groovyregister()
Example
mods.horsepower.press.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond') * 5)
.register()
mods.horsepower.press.recipeBuilder()
.input(item('minecraft:diamond'))
.fluidOutput(fluid('lava') * 500)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.horsepower.press.remove(PressRecipe)
Removes all recipes that match the given input:
groovymods.horsepower.press.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.horsepower.press.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.horsepower.press.removeAll()
Example
mods.horsepower.press.removeByInput(item('minecraft:wheat_seeds'))
mods.horsepower.press.removeByOutput(item('minecraft:dirt'))
mods.horsepower.press.removeByOutput(fluid('water'))
mods.horsepower.press.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.horsepower.press.streamRecipes()