PetSky

public final class PetSky

Day, night and rain as the interactions see them.

Functions

Link copied to clipboard
public static boolean isDay(World world)
Whether the world has daylight now.
Link copied to clipboard
public static boolean isNight(World world)
Link copied to clipboard
public static boolean isRainingOn(Location location)
Whether rain falls on this spot: a storm, open sky above, and a biome warm and wet enough for rain.
Link copied to clipboard
public static long nightEnd(long fullTime)
The last full-time tick of the night that holds fullTime.
Link copied to clipboard
public static boolean underOpenSky(Location location)
Nothing that stops rain or blocks the view between this spot and the sky.