Add sun related API
This commit is contained in:
@@ -1835,6 +1835,16 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
|
||||
*/
|
||||
public void setFullTime(long time);
|
||||
|
||||
// Paper start
|
||||
|
||||
/**
|
||||
* Check if it is currently daytime in this world
|
||||
*
|
||||
* @return True if it is daytime
|
||||
*/
|
||||
public boolean isDayTime();
|
||||
// Paper end
|
||||
|
||||
/**
|
||||
* Gets the full in-game time on this world since the world generation
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user