Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions paper-api/src/main/java/org/bukkit/World.java
Original file line number Diff line number Diff line change
Expand Up @@ -2106,6 +2106,14 @@ default boolean setSpawnLocation(int x, int y, int z) {
* @return True if it is daytime
*/
public boolean isDayTime();

/**
* Check if this world has a world clock. Some worlds, such as the Nether, do not have a world clock.
*
* @return True if this world has a world clock, false otherwise
*/
public boolean hasWorldClock();

// Paper end

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,11 @@ public void setFullTime(long time) {
public boolean isDayTime() {
return getHandle().isBrightOutside();
}

@Override
public boolean hasWorldClock() {
return getHandle().dimensionType().defaultClock().isPresent();
}
// Paper end

@Override
Expand Down
Loading