Skip to content

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 ​

The identifier mods.industrialforegoing.protein_reactor will be used as the default on this page.

All Identifiers

Any of these can be used to refer to this compat:

groovy
mods.industrialforegoing.proteinreactor
mods.industrialforegoing.proteinReactor
mods.industrialforegoing.ProteinReactor
mods.industrialforegoing.protein_reactor/* Used as page default */

Adding Recipes ​

  • Add the given recipe to the recipe list:

    groovy
    mods.industrialforegoing.protein_reactor.add(IReactorEntry)
  • Adds a Protein Reactor recipe in the format input:

    groovy
    mods.industrialforegoing.protein_reactor.add(ItemStack)
  • Adds a Protein Reactor recipe in the format input, nbtCheck:

    groovy
    mods.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:

    groovy
    mods.industrialforegoing.protein_reactor.remove(IReactorEntry)
  • Removes all recipes that match the given input:

    groovy
    mods.industrialforegoing.protein_reactor.removeByInput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.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:

    groovy
    mods.industrialforegoing.protein_reactor.streamRecipes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.