mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 01:32:02 -07:00
Undeprecate Enchantment#isCursed (#6524)
This commit is contained in:
@@ -38,6 +38,18 @@ diff --git a/src/main/java/org/bukkit/enchantments/Enchantment.java b/src/main/j
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/enchantments/Enchantment.java
|
||||
+++ b/src/main/java/org/bukkit/enchantments/Enchantment.java
|
||||
@@ -0,0 +0,0 @@ public abstract class Enchantment implements Keyed, net.kyori.adventure.translat
|
||||
* Cursed enchantments are found the same way treasure enchantments are
|
||||
*
|
||||
* @return true if the enchantment is cursed
|
||||
- * @deprecated cursed enchantments are no longer special. Will return true
|
||||
- * only for {@link Enchantment#BINDING_CURSE} and
|
||||
- * {@link Enchantment#VANISHING_CURSE}.
|
||||
*/
|
||||
- @Deprecated
|
||||
public abstract boolean isCursed();
|
||||
|
||||
/**
|
||||
@@ -0,0 +0,0 @@ public abstract class Enchantment implements Keyed, net.kyori.adventure.translat
|
||||
* @return the name of the enchantment with {@code level} applied
|
||||
*/
|
||||
|
Reference in New Issue
Block a user