Minecraft wiki entry for Barrel, associated text: Barrels can be moved by pistons,‌[Bedrock Edition only] water and lava flow around barrels without affecting them. Lava can create fire in air blocks next to barrels as if the barrel was flammable, but the barrel does not actually catch fire and can't be burned.