Mekanism

Mekanism

111M Downloads

[Request] Gas Interface Changes

hilburn opened this issue ยท 4 comments

commented

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

commented

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?

commented

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

commented

Closing due to inactivity.

commented

@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.