[Request] Gas Interface Changes
hilburn opened this issue ยท 4 comments
the functions at https://github.com/aidancbrady/Mekanism/blob/master/src/main/java/mekanism/common/tile/TileEntityAdvancedElectricMachine.java#L84
seem like they would belong more in IGasHandler - allowing people to query the handler would seem like a natural thing to do, somewhat like the IEnergyHandler interface for RF, get returned a stored Gas (or list of gasses) and the maximum storage capacity for them
Currently adding universal support for GasHandlers is difficult because of this inconsistency with how the storage can be queried
Hmm, yes. I'll look at how best to do this. Would it be satisfactory to simply have a method of asking for the actual GasTank in the Handler, or would that not work for your use-case?
That would be fine - The reason I am looking for this is to upgrade Steve's Factory Manager to handle Gasses in the same way it currently handles Fluids and Items (and RF with the updates as it currently stands) so any ability to query the IGasHandlers and get the visible tanks would make my life easier
@hilburn, what exactly are you hoping for? I'l happily do a change to the API, but I'm a bit confused by your first post.