From 652b7b8ea84b4048b30e8d27f12e2f430baee5fb Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 13 Feb 2021 10:25:32 +1100 Subject: [PATCH] SPIGOT-5778: Added World.getGameTime method By: Jakub Zacek --- paper-api/src/main/java/org/bukkit/World.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 70d6994e4..f36ad196f 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -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. *