public class EnchantmentDurability extends Enchantment
aquaAffinity, baneOfArthropods, blastProtection, effectId, efficiency, enchantmentsBookList, enchantmentsList, featherFalling, fireAspect, fireProtection, flame, fortune, infinity, knockback, looting, power, projectileProtection, protection, punch, respiration, sharpness, silkTouch, smite, thorns, type, unbreaking
Modifier and Type | Method and Description |
---|---|
boolean |
canApply(ItemStack par1ItemStack) |
int |
getMaxEnchantability(int par1)
Returns the maximum value of enchantability nedded on the enchantment level passed.
|
int |
getMaxLevel()
Returns the maximum level that the enchantment can have.
|
int |
getMinEnchantability(int par1)
Returns the minimal value of enchantability needed on the enchantment level passed.
|
static boolean |
negateDamage(ItemStack par0ItemStack,
int par1,
Random par2Random)
Used by ItemStack.attemptDamageItem.
|
addToBookList, calcModifierDamage, calcModifierLiving, canApplyAtEnchantingTable, canApplyTogether, getMinLevel, getName, getTranslatedName, getWeight, isAllowedOnBooks, setName
public int getMinEnchantability(int par1)
getMinEnchantability
in class Enchantment
public int getMaxEnchantability(int par1)
getMaxEnchantability
in class Enchantment
public int getMaxLevel()
getMaxLevel
in class Enchantment
public boolean canApply(ItemStack par1ItemStack)
canApply
in class Enchantment
public static boolean negateDamage(ItemStack par0ItemStack, int par1, Random par2Random)