isDay

public static boolean isDay(World world)

Whether the world has daylight now. Worlds without a sun count as night.