addFluid

open fun addFluid(fluid: PylonFluid, amount: Double): Boolean(source)

Adds to a fluid buffer only if the new amount of fluid is greater than or equal to zero and fits in the buffer.

Return

true only if the buffer was added to successfully