![JAR search and dependency download from the Maven repository](/logo.png)
cn.nukkit.item.enchantment.EnchantmentMending Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
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 - 2025 Weber Informatics LLC | Privacy Policy