Botarium

Botarium

28M Downloads

[Feature request]: Add getter of fluid tank capacity to PlatformFluidItemHandler

gisellevonbingen opened this issue · 1 comments

commented

FluidContainer can get each tank capacity by getTankCapacity(int).
But PlatformFluidItemHandler is can't. No getter of tank capacity in there.

So, When some code to do inserting fluid at item fully.
Inevitably, Long.MAX_VALUE must be used. (or Integer.MAX_VALUE)

In inside code of item, can solve it by declare method to return Literal or Config's value about capacity.
But outside of item, no way to get capacity for unified method.
In example, can't calculate fluid stored ratio.

So, i think need to add getter of fluid tank capacity to PlatformFluidItemHandler.

commented

done in 1.7.12