Minecraft wiki entry for Enderman, associated text: An aggravated enderman pursues the player until it is either killed or distracted by exterior elements, such as rain or fire. They do not take damage from sunlight like undead mobs, but teleport randomly around until finding a shady spot if not already pursuing a player. During rain or daybreak, they teleport away to underground locations, such as caves. An enderman in a player's vicinity prevents the player from sleeping in a bed at night as if any hostile mob were nearby. If the player is already asleep in a bed, it is possible for an enderman to teleport on it and wake players.