aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0179-Expose-the-internal-current-tick.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0179-Expose-the-internal-current-tick.patch')
-rw-r--r--patches/api/0179-Expose-the-internal-current-tick.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/patches/api/0179-Expose-the-internal-current-tick.patch b/patches/api/0179-Expose-the-internal-current-tick.patch
new file mode 100644
index 0000000000..7cd95c46f8
--- /dev/null
+++ b/patches/api/0179-Expose-the-internal-current-tick.patch
@@ -0,0 +1,38 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: William Blake Galbreath <[email protected]>
+Date: Sat, 20 Apr 2019 19:47:29 -0500
+Subject: [PATCH] Expose the internal current tick
+
+
+diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java
+index 395d7245aac45a1b805e15ee1fdb9949574f3f59..d1e1c49ecf6a1ede71548fbac6143e38ba6dfea1 100644
+--- a/src/main/java/org/bukkit/Bukkit.java
++++ b/src/main/java/org/bukkit/Bukkit.java
+@@ -2498,6 +2498,10 @@ public final class Bukkit {
+ public static com.destroystokyo.paper.profile.PlayerProfile createProfileExact(@Nullable UUID uuid, @Nullable String name) {
+ return server.createProfileExact(uuid, name);
+ }
++
++ public static int getCurrentTick() {
++ return server.getCurrentTick();
++ }
+ // Paper end
+
+ @NotNull
+diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
+index 2382322bc4f30ff3163b2941650692d9a13328ac..cf242e2e6d538d3d38b7b10321ab375e018b24b1 100644
+--- a/src/main/java/org/bukkit/Server.java
++++ b/src/main/java/org/bukkit/Server.java
+@@ -2174,5 +2174,12 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
+ */
+ @NotNull
+ com.destroystokyo.paper.profile.PlayerProfile createProfileExact(@Nullable UUID uuid, @Nullable String name);
++
++ /**
++ * Get the current internal server tick
++ *
++ * @return Current tick
++ */
++ int getCurrentTick();
+ // Paper end
+ }