RFTools

RFTools

74M Downloads

[1.10.2][5.51] Powercell doesn't support new Forge Energy API

ckaraviotis opened this issue ยท 4 comments

commented

I've been implementing the new Forge Energy API on a project, and I'm using RFTools to test compatibility. When I connect an Powercell to a simple Forge Energy generator, on energy is received. When I connect a Matter Transmitter, energy is received by the transmitter correctly. No wires are used, connections are block-to-block.

I had a look through your code and it seems like the Powercell is extending GenericTileEntity (and directly implements cofh EnergyProvider/Reciever), which doesn't provide the new energy capabilities as in GenericEnergyHandlerTileEntity, GenericEnergyProviderTileEntity & GenericEnergyReceiverTileEntity

rftools-1.10-5.51.jar
mcjtylib-1.10-2.1.4.jar

commented

Ok, that's an oversight. I will fix this in the next version

commented

Just did some further testing, and your items also don't expose capabilities, so they can't be charged by forge energy. The items are rftools charged porter & advanced charged porter, Rftools dimensions: dimension monitor & phased field generator.

commented

Fixed next release:

  • Powercells will receive forge energy
  • Powercells will charge items with forge energy
  • Charged porter and tablet support being charged with forge energy now
commented

The items was actually intentional as it seemed pretty complicated to implement forge energy on them (and not efficient). But it seems there is a better way so I might still do it