mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-17 18:47:40 +01:00
Undeprecate Enchantment#isCursed (#6524)
This commit is contained in:
parent
7fda985a9c
commit
bd48009917
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue