2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2021-07-07 19:18:05 +02:00
|
|
|
From: kennytv <jahnke.nassim@gmail.com>
|
2021-06-11 14:02:28 +02:00
|
|
|
Date: Fri, 26 Mar 2021 11:23:27 +0100
|
|
|
|
Subject: [PATCH] Expose protocol version
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/UnsafeValues.java b/src/main/java/org/bukkit/UnsafeValues.java
|
2021-12-22 23:56:37 +01:00
|
|
|
index ec3a3a02cc7ed68b88cfbe6c83111bbe818c0a37..62e40c2e5f0da64a40772ae1445c679fd1c7c457 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/org/bukkit/UnsafeValues.java
|
|
|
|
+++ b/src/main/java/org/bukkit/UnsafeValues.java
|
2021-12-22 23:56:37 +01:00
|
|
|
@@ -155,5 +155,12 @@ public interface UnsafeValues {
|
2021-06-11 14:02:28 +02:00
|
|
|
* @return the itemstack rarity
|
|
|
|
*/
|
|
|
|
public io.papermc.paper.inventory.ItemRarity getItemStackRarity(ItemStack itemStack);
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Returns the server's protocol version.
|
|
|
|
+ *
|
|
|
|
+ * @return the server's protocol version
|
|
|
|
+ */
|
|
|
|
+ int getProtocolVersion();
|
|
|
|
// Paper end
|
|
|
|
}
|