public class EnchantmentProtection extends Enchantment
| Modifier and Type | Field and Description |
|---|---|
int |
protectionType
Defines the type of protection of the enchantment, 0 = all, 1 = fire, 2 = fall (feather fall), 3 = explosion and
4 = projectile.
|
aquaAffinity, baneOfArthropods, blastProtection, effectId, efficiency, enchantmentsList, featherFalling, field_92090_c, fireAspect, fireProtection, flame, fortune, infinity, knockback, looting, power, projectileProtection, protection, punch, respiration, sharpness, silkTouch, smite, thorns, type, unbreaking| Constructor and Description |
|---|
EnchantmentProtection(int par1,
int par2,
int par3) |
| Modifier and Type | Method and Description |
|---|---|
int |
calcModifierDamage(int par1,
DamageSource par2DamageSource)
Calculates de damage protection of the enchantment based on level and damage source passed.
|
boolean |
canApplyTogether(Enchantment par1Enchantment)
Determines if the enchantment passed can be applyied together with this enchantment.
|
static double |
func_92092_a(Entity par0Entity,
double par1) |
static int |
func_92093_a(Entity par0Entity,
int par1) |
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, calcModifierLiving, canApply, canApplyAtEnchantingTable, getMinLevel, getTranslatedName, getWeight, setNamepublic final int protectionType
public int getMinEnchantability(int par1)
getMinEnchantability in class Enchantmentpublic int getMaxEnchantability(int par1)
getMaxEnchantability in class Enchantmentpublic int getMaxLevel()
getMaxLevel in class Enchantmentpublic int calcModifierDamage(int par1,
DamageSource par2DamageSource)
calcModifierDamage in class Enchantmentpublic String getName()
getName in class Enchantmentpublic boolean canApplyTogether(Enchantment par1Enchantment)
canApplyTogether in class Enchantmentpublic static int func_92093_a(Entity par0Entity, int par1)
public static double func_92092_a(Entity par0Entity, double par1)