2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2022-01-27 15:35:36 +01:00
|
|
|
From: Nassim Jahnke <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
|
2022-01-01 04:05:42 +01:00
|
|
|
index 2392efea1b514671014c39d75407f59fdea842ef..8f85c41be166ea720a0bf5b6b58bc51a6d2c71cc 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
|
2022-01-01 04:05:42 +01:00
|
|
|
@@ -161,5 +161,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
|
|
|
|
}
|