diff options
author | Senmori <thesenmori@gmail.com> | 2016-11-18 23:46:27 -0500 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-11-19 16:07:51 +1100 |
commit | bd2d7935c42e9a368fe1ff9110d710ef4ea261d1 (patch) | |
tree | 2f9cd92abaec1449a2406cd2f8f338866aa11570 /src | |
parent | fa1a44ab5dd08aa0ae7bdbb3c37f7ba4c1fcb41b (diff) | |
download | craftbukkit-bd2d7935c42e9a368fe1ff9110d710ef4ea261d1.tar craftbukkit-bd2d7935c42e9a368fe1ff9110d710ef4ea261d1.tar.gz craftbukkit-bd2d7935c42e9a368fe1ff9110d710ef4ea261d1.tar.lz craftbukkit-bd2d7935c42e9a368fe1ff9110d710ef4ea261d1.tar.xz craftbukkit-bd2d7935c42e9a368fe1ff9110d710ef4ea261d1.zip |
Implement isCursed for new enchantments
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/enchantments/CraftEnchantment.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/enchantments/CraftEnchantment.java b/src/main/java/org/bukkit/craftbukkit/enchantments/CraftEnchantment.java index 58af14d7..759dac00 100644 --- a/src/main/java/org/bukkit/craftbukkit/enchantments/CraftEnchantment.java +++ b/src/main/java/org/bukkit/craftbukkit/enchantments/CraftEnchantment.java @@ -60,6 +60,11 @@ public class CraftEnchantment extends Enchantment { } @Override + public boolean isCursed() { + return target.d(); // PAIL isCursed + } + + @Override public boolean canEnchantItem(ItemStack item) { return target.canEnchant(CraftItemStack.asNMSCopy(item)); } @@ -87,6 +92,8 @@ public class CraftEnchantment extends Enchantment { return "DEPTH_STRIDER"; case 9: return "FROST_WALKER"; + case 10: + return "BINDING_CURSE"; case 16: return "DAMAGE_ALL"; case 17: @@ -121,6 +128,8 @@ public class CraftEnchantment extends Enchantment { return "LURE"; case 70: return "MENDING"; + case 71: + return "VANISHING_CURSE"; default: return "UNKNOWN_ENCHANT_" + getId(); } |