Minecraft wiki entry for Damage, associated text: A sprinting attack causes extra knockback. A thrown egg or snowball also causes knockback, despite not damaging most mobs. Entities riding another entity never receive any knockback when attacked. Iron golems, shulkers, and the ender dragon also don't receive knockback, and certain other mobs have varying levels of knockback resistance. In Java Edition, each piece of netherite armor adds 10% knockback resistance to its wearer, giving 40% knockback resistance with a full set. In Bedrock Edition, each individual piece instead has 22.5% knockback resistance, giving 90% total resistance.