setFluid

open fun setFluid(amount: Double): Boolean(source)

Sets the fluid amount only if the new amount of fluid is greater than zero and fits in the tank.

Return

true only if the fluid amount was set successfully