Minecraft wiki entry for Swimming, associated text: Sprint-swimming, like normal sprinting, ends when the player collides with a solid block, sneaks, blocks or attacks a mob. Additionally, sprint-swimming also ends if the hunger bar decreases to 6 () or below.