Minecraft wiki entry for Guardian_farming, associated text: Because guardian spawning is severely inhibited when the water block selected for a spawning attempt has a view of the sky, putting a roof over the water spawning area will increase the spawning rate.