Add a generic capability based P2P tunnel
yueh opened this issue ยท 2 comments
The current P2P tunnels for fluids, forge energy and some degree items are very similar and could be combined into a single class with configurable suppliers for the input and output capabilites.
This should allow for other mods to add custom tunnels, but that will require some careful planning for the requirements,
- Extract a generic P2P tunnels for capabilities
- Change
TunnelType
into an interface make extending easier - Add a registry for tunneltypes and input/output capabilities (tentative)
Addons can now add p2p tunnels, provided they depend on implementation details. I would say that is fine for now.