Minecraft wiki entry for Water, associated text: Most mobs that can stand can also swim any time they are in water, except for iron golems, piglins, hoglins, striders, piglin brutes and undead mobs. This can lead to drowning if the water is falling from above.