leme clear up a couple of things. first, golems of both varieties are actually unable to target the ender dragon, the ender dragon is not classified as a standard mob, its classified as a boss mob. the ender dragon's unique properties make it unaffected by tamed wolves, golems, and most dispenser launched projectiles, though player launched projectiles still harm it. 2nd thing, snowballs and eggs do 0 damage to most mobs, though they can push them back. snowballs DO damage blazes, ghasts, the ender dragon (if thrown by player) and possibly the wither.