public class EnchantmentDamage extends Enchantment
| Modifier and Type | Field and Description | 
|---|---|
int | 
damageType
Defines the type of damage of the enchantment, 0 = all, 1 = undead, 3 = arthropods 
 | 
aquaAffinity, baneOfArthropods, blastProtection, effectId, efficiency, enchantmentsList, featherFalling, field_92090_c, field_92091_k, fireAspect, fireProtection, flame, fortune, infinity, knockback, looting, power, projectileProtection, protection, punch, respiration, sharpness, silkTouch, smite, type, unbreaking| Constructor and Description | 
|---|
EnchantmentDamage(int par1,
                                  int par2,
                                  int par3)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
calcModifierLiving(int par1,
                                    EntityLiving par2EntityLiving)
Calculates de (magic) damage done by the enchantment on a living entity based on level and entity passed. 
 | 
boolean | 
canApplyTogether(Enchantment par1Enchantment)
Determines if the enchantment passed can be applyied together with this enchantment. 
 | 
boolean | 
func_92089_a(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. 
 | 
String | 
getName()
Return the name of key in translation table of this enchantment. 
 | 
addToBookList, calcModifierDamage, canApplyAtEnchantingTable, getMinLevel, getTranslatedName, getWeight, setNamepublic final int damageType
public EnchantmentDamage(int par1, int par2, int par3)
public int getMinEnchantability(int par1)
getMinEnchantability in class Enchantmentpublic int getMaxEnchantability(int par1)
getMaxEnchantability in class Enchantmentpublic int getMaxLevel()
getMaxLevel in class Enchantmentpublic int calcModifierLiving(int par1, EntityLiving par2EntityLiving)
calcModifierLiving in class Enchantmentpublic String getName()
getName in class Enchantmentpublic boolean canApplyTogether(Enchantment par1Enchantment)
canApplyTogether in class Enchantmentpublic boolean func_92089_a(ItemStack par1ItemStack)
func_92089_a in class Enchantment