SPIGOT-5778: Added World.getGameTime method

This commit is contained in:
Jakub Zacek 2021-02-13 10:25:32 +11:00 committed by md_5
parent 315b69c1d1
commit 5b289e6914
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -954,6 +954,15 @@ public interface World extends PluginMessageRecipient, Metadatable {
*/
public void setFullTime(long time);
/**
* Gets the full in-game time on this world since the world generation
*
* @return The current absolute time since the world generation
* @see #getTime() Returns a relative time of this world
* @see #getFullTime() Returns an absolute time of this world
*/
public long getGameTime();
/**
* Returns whether the world has an ongoing storm.
*