Rotary Grinder (Prodigy Tech)
Description
A simple 1 to 1 processing machine making dusts.
Identifier
Refer to this via any of the following:
mods.prodigytech.rotary_grinder/* Used as page default */
mods.prodigytech.rotarygrinder
mods.prodigytech.rotaryGrinder
mods.prodigytech.RotaryGrinder
Adding Recipes
Recipe Builder
Just like other recipe types, the Rotary Grinder also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.prodigytech.rotary_grinder.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 exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. The time needed to perform the recipe, in ticks. Will run faster than this number when heated over 80 C. Requires greater than or equal to 1. (Default(default time for this machine in the mod's config)
).groovytime(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
orlykrast.prodigytech.common.recipe.SimpleRecipe
).groovyregister()
Example
mods.prodigytech.rotary_grinder.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:diamond'))
.time(50)
.register()
mods.prodigytech.rotary_grinder.recipeBuilder()
.input(item('minecraft:iron_ingot'))
.output(item('minecraft:coal'))
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.prodigytech.rotary_grinder.removeByInput(IIngredient)
Removes all registered recipes:
groovymods.prodigytech.rotary_grinder.removeAll()
Example
mods.prodigytech.rotary_grinder.removeByInput(item('minecraft:gravel'))
mods.prodigytech.rotary_grinder.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.prodigytech.rotary_grinder.streamRecipes()