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, setNamepublic int getMinEnchantability(int par1)
getMinEnchantability in class Enchantmentpublic int getMaxEnchantability(int par1)
getMaxEnchantability in class Enchantmentpublic int getMaxLevel()
getMaxLevel in class Enchantmentpublic boolean canApply(ItemStack par1ItemStack)
canApply in class Enchantmentpublic static boolean negateDamage(ItemStack par0ItemStack, int par1, Random par2Random)