storedFluidContainer

fun storedFluidContainer(name: String, allowedTypes: Set<FluidType>, capacity: Provider<Long>, persistent: Boolean = false, updateHandler: () -> Unit? = null): FluidContainer

Retrieves a FluidContainer stored under name or creates an empty new one. The values allowedTypes and capacity are not serialized and will be applied every time. Then registers the specified updateHandler.

If persistent is true, the container will be stored in the item when the TileEntity is dropped.