Minecraft wiki entry for Development_versions, associated text: Mobs now show the name given to them, either by anviling on their Spawn Egg or external editors, above their head when the player looks directly at them within a circular 6 block radius.