Switch Phantom Energyface implementation
SoniEx2 opened this issue ยท 3 comments
The current Phantom Energyface implementation uses pull API. However, there's a much better implementation described on SleepyTrousers/EnderIO-1.5-1.12#4085. Its benefits include compatibility with a lot more mods. (Still won't be able to pull power from Immersive Engineering generators, but eh w/e, EnderIO is more important.)
And if you reuse this with standard Phantomfaces, we'll be able to auto-pull through a phantomface!
The Phantom Energyface does two things:
- have the same capability the block it is connected to has, so that it passes on energy values / methods to whatever is interacting with it
- push energy that it "contains" to all sides.
There is no "pull API".
Also, I don't know why you're linking that EnderIO issue, because tterag said as a reply to it that the code is non-functional and not supposed to be used.
The code is non-functional because I never actually tested it :P
It should work tho, if you just move the tileentity for less than a tick. (Remember to move it back.)
And then we can get support for more mods and more features (like auto-pull for items).
Also, by "pull API" I mean the pull API provided by Forge Energy - the canExtract and extractEnergy stuff.