Package net.minecraft.src
Class EnchantmentDamage
java.lang.Object
net.minecraft.src.Enchantment
net.minecraft.src.EnchantmentDamage
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intDefines the type of damage of the enchantment, 0 = all, 1 = undead, 3 = arthropodsFields inherited from class net.minecraft.src.Enchantment
aquaAffinity, baneOfArthropods, blastProtection, effectId, efficiency, enchantmentsBookList, enchantmentsList, featherFalling, fireAspect, fireProtection, flame, fortune, infinity, knockback, looting, name, power, projectileProtection, protection, punch, respiration, sharpness, silkTouch, smite, thorns, type, unbreaking -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatcalcModifierLiving(int par1, EntityLivingBase par2EntityLivingBase) Calculates de (magic) damage done by the enchantment on a living entity based on level and entity passed.booleanbooleancanApplyTogether(Enchantment par1Enchantment) Determines if the enchantment passed can be applyied together with this enchantment.intgetMaxEnchantability(int par1) Returns the maximum value of enchantability nedded on the enchantment level passed.intReturns the maximum level that the enchantment can have.intgetMinEnchantability(int par1) Returns the minimal value of enchantability needed on the enchantment level passed.getName()Return the name of key in translation table of this enchantment.Methods inherited from class net.minecraft.src.Enchantment
calcModifierDamage, canBeAppliedByVanillaEnchanter, getMinLevel, getTranslatedName, getWeight, setName
-
Field Details
-
damageType
public final int damageTypeDefines the type of damage of the enchantment, 0 = all, 1 = undead, 3 = arthropods
-
-
Constructor Details
-
EnchantmentDamage
public EnchantmentDamage(int par1, int par2, int par3)
-
-
Method Details
-
getMinEnchantability
public int getMinEnchantability(int par1) Returns the minimal value of enchantability needed on the enchantment level passed.- Overrides:
getMinEnchantabilityin classEnchantment
-
getMaxEnchantability
public int getMaxEnchantability(int par1) Returns the maximum value of enchantability nedded on the enchantment level passed.- Overrides:
getMaxEnchantabilityin classEnchantment
-
getMaxLevel
public int getMaxLevel()Returns the maximum level that the enchantment can have.- Overrides:
getMaxLevelin classEnchantment
-
calcModifierLiving
Calculates de (magic) damage done by the enchantment on a living entity based on level and entity passed.- Overrides:
calcModifierLivingin classEnchantment
-
getName
Return the name of key in translation table of this enchantment.- Overrides:
getNamein classEnchantment
-
canApplyTogether
Determines if the enchantment passed can be applyied together with this enchantment.- Overrides:
canApplyTogetherin classEnchantment
-
canApply
- Overrides:
canApplyin classEnchantment
-