cn.nukkit.item.enchantment.EnchantmentMending Maven / Gradle / Ivy
package cn.nukkit.item.enchantment;
/**
* @author Rover656
*/
public class EnchantmentMending extends Enchantment {
protected EnchantmentMending() {
super(ID_MENDING, "mending", Rarity.RARE, EnchantmentType.BREAKABLE);
}
@Override
public int getMinEnchantAbility(int level) {
return 25 * level;
}
@Override
public int getMaxEnchantAbility(int level) {
return this.getMinEnchantAbility(level) + 50;
}
@Override
public boolean checkCompatibility(Enchantment enchantment) {
return super.checkCompatibility(enchantment) && enchantment.id != ID_BOW_INFINITY;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy