deprecate our ItemRarity API

This commit is contained in:
Jake Potrebic
2024-04-26 16:43:59 -07:00
parent d93d74a7d5
commit 5a55c71491
9 changed files with 67 additions and 109 deletions

View File

@@ -11,7 +11,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+++ b/src/main/java/org/bukkit/Material.java
@@ -0,0 +0,0 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla
public io.papermc.paper.inventory.ItemRarity getItemRarity() {
return Bukkit.getUnsafe().getItemRarity(this);
return new org.bukkit.inventory.ItemStack(this).getRarity();
}
+
+ /**