Add Enchantment#isTreasure()Z

Determines if the enchantment is a treasure enchantment - only available via means other than the enchantment table.

By: Senmori <thesenmori@gmail.com>
This commit is contained in:
Bukkit/Spigot
2016-10-25 11:16:28 -04:00
parent a05a1330d3
commit bde8f61893
2 changed files with 15 additions and 0 deletions

View File

@@ -44,6 +44,11 @@ public class EnchantmentWrapper extends Enchantment {
return getEnchantment().getName();
}
@Override
public boolean isTreasure() {
return getEnchantment().isTreasure();
}
@Override
public boolean conflictsWith(Enchantment other) {
return getEnchantment().conflictsWith(other);