Protein Reactor (Industrial Foregoing)
Description
Converts an input item into Protein, with the amount of Protein generated being based on the number of concurrent conversion processes inside the Protein Reactor.
Identifier
Refer to this via any of the following:
groovy
mods.industrialforegoing.protein_reactor/* Used as page default */
mods.industrialforegoing.proteinreactor
mods.industrialforegoing.proteinReactor
mods.industrialforegoing.ProteinReactor
Adding Recipes
Add the given recipe to the recipe list:
groovymods.industrialforegoing.protein_reactor.add(IReactorEntry)
Adds a Protein Reactor recipe in the format
input
:groovymods.industrialforegoing.protein_reactor.add(ItemStack)
Adds a Protein Reactor recipe in the format
input
,nbtCheck
:groovymods.industrialforegoing.protein_reactor.add(ItemStack, Predicate<NBTTagCompound>)
Example
groovy
mods.industrialforegoing.protein_reactor.add(item('minecraft:clay'))
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.industrialforegoing.protein_reactor.remove(IReactorEntry)
Removes all recipes that match the given input:
groovymods.industrialforegoing.protein_reactor.removeByInput(IIngredient)
Removes all registered recipes:
groovymods.industrialforegoing.protein_reactor.removeAll()
Example
groovy
mods.industrialforegoing.protein_reactor.removeByInput(item('minecraft:porkchop'))
mods.industrialforegoing.protein_reactor.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.industrialforegoing.protein_reactor.streamRecipes()