setFluidCapacity

open fun setFluidCapacity(fluid: PylonFluid, capacity: Double)(source)

Sets the new capacity of a buffer. Any existing fluid will not be removed, so you may end up with a buffer containing more fluid than it technically has capacity for.