IC 2 api energy manipulation

  • For an upcoming mod that utilize ic2 api i'm trying to access the internal energy storage of energysinks and wants to be able to set and get the energy content. Does anyone have an idea how i can do this?
    an example of what i want to be able to do: Take energy from an macerator that have its internal storage filled, and move it to an electric furnace


    //Hirvio

  • The problem with any sort of "making them an output" is, that there's no api representing the energy stored and how to retrieve it. This makes it impossible to pull energy from a sink in a generic way, you can only hard code this information for specific tile entities to e.g. access their energy storage through calling ic2 core code or reflection.