Prevents the spawning of mobs near villagers, as if they were players. The spawn-proofing radius is the same as for players.
Iron Golems and Cats are not prevented from spawning.
Prevents hostile mob-spawn around villagers, like for players.
JavaMIT