Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 11:00:06 +01:00
24 Zeilen
850 B
Diff
24 Zeilen
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 7f90ef2fd1c87c5b8b69f2e9dba3ad8e6e9ce3ec..ba899198be49f9e95c3fb64759313662f75c4567 100644
|
||
|
--- a/src/main/java/org/bukkit/UnsafeValues.java
|
||
|
+++ b/src/main/java/org/bukkit/UnsafeValues.java
|
||
|
@@ -141,5 +141,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
|
||
|
}
|