Added Enchantment.conflictsWith() and EnchantmentTarget.includes(). Addresses BUKKIT-1159 and addresses BUKKIT-1160

This commit is contained in:
Celtic Minstrel
2012-03-12 15:33:19 -04:00
committed by EvilSeph
parent e783a03aa3
commit e8f00c8fd8
4 changed files with 140 additions and 10 deletions

View File

@@ -43,4 +43,9 @@ public class EnchantmentWrapper extends Enchantment {
public String getName() {
return getEnchantment().getName();
}
@Override
public boolean conflictsWith(Enchantment other) {
return getEnchantment().conflictsWith(other);
}
}