Nightbreak Java API
Toggle table of contents
JVM
Target filter
JVM
Switch theme
Search in API
Skip to content
Nightbreak Java API
FreeMinecraftModels
/
com.magmaguy.freeminecraftmodels.pets.interactions
/
PetSky
Pet
Sky
public
final
class
PetSky
Day, night and rain as the interactions see them.
Members
Functions
is
Day
Link copied to clipboard
public
static
boolean
isDay
(
World
world
)
Whether the world has daylight now.
is
Night
Link copied to clipboard
public
static
boolean
isNight
(
World
world
)
is
Raining
On
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.
night
End
Link copied to clipboard
public
static
long
nightEnd
(
long fullTime
)
The last full-time tick of the night that holds
fullTime
.
under
Open
Sky
Link copied to clipboard
public
static
boolean
underOpenSky
(
Location
location
)
Nothing that stops rain or blocks the view between this spot and the sky.