mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-04 18:01:17 +01:00
24 lines
850 B
Diff
24 lines
850 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: kennytv <jahnke.nassim@gmail.com>
|
|
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
|
|
index ec3a3a02cc7ed68b88cfbe6c83111bbe818c0a37..62e40c2e5f0da64a40772ae1445c679fd1c7c457 100644
|
|
--- a/src/main/java/org/bukkit/UnsafeValues.java
|
|
+++ b/src/main/java/org/bukkit/UnsafeValues.java
|
|
@@ -155,5 +155,12 @@ public interface UnsafeValues {
|
|
* @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
|
|
}
|