API Lookup should expose the API and context type
Technici4n opened this issue ยท 0 comments
It's useful for anyone using API API beyond the simple use case.
For example, while trying to dispatch API queries to AE2 parts, I noticed that I need to get the context class to check if it's AEPartLocation
or Direction
: https://github.com/AppliedEnergistics/Applied-Energistics-2/blob/5711bbc8ffaeb25ada8149cb5f674d3e699eb3d6/src/api/java/appeng/api/parts/PartApiLookup.java#L38. (warning: most of the code is MCP, but not this file).
In this case I could also ask for the context as an additional parameter, but it's redundant and I think it's a good API API addition. I am opening this to remember. I will update #1352 as well soon:tm:.