public class EnchantmentDamage extends Enchantment
Modifier and Type | Field and Description |
---|---|
int |
damageType |
aquaAffinity, baneOfArthropods, blastProtection, depthStrider, effectId, efficiency, enchantmentsBookList, featherFalling, fireAspect, fireProtection, flame, fortune, infinity, knockback, looting, luckOfTheSea, lure, name, power, projectileProtection, protection, punch, respiration, sharpness, silkTouch, smite, thorns, type, unbreaking
Constructor and Description |
---|
EnchantmentDamage(int enchID,
ResourceLocation enchName,
int enchWeight,
int classification) |
Modifier and Type | Method and Description |
---|---|
float |
calcDamageByCreature(int level,
EnumCreatureAttribute creatureType) |
boolean |
canApply(ItemStack stack) |
boolean |
canApplyTogether(Enchantment ench) |
int |
getMaxEnchantability(int enchantmentLevel) |
int |
getMaxLevel() |
int |
getMinEnchantability(int enchantmentLevel) |
java.lang.String |
getName() |
void |
onEntityDamaged(EntityLivingBase user,
Entity target,
int level) |
addToBookList, calcModifierDamage, canApplyAtEnchantingTable, getEnchantmentById, getEnchantmentByLocation, getLocationNames, getMinLevel, getTranslatedName, getWeight, isAllowedOnBooks, onUserHurt, setName
public EnchantmentDamage(int enchID, ResourceLocation enchName, int enchWeight, int classification)
public int getMinEnchantability(int enchantmentLevel)
getMinEnchantability
in class Enchantment
public int getMaxEnchantability(int enchantmentLevel)
getMaxEnchantability
in class Enchantment
public int getMaxLevel()
getMaxLevel
in class Enchantment
public float calcDamageByCreature(int level, EnumCreatureAttribute creatureType)
calcDamageByCreature
in class Enchantment
public java.lang.String getName()
getName
in class Enchantment
public boolean canApplyTogether(Enchantment ench)
canApplyTogether
in class Enchantment
public boolean canApply(ItemStack stack)
canApply
in class Enchantment
public void onEntityDamaged(EntityLivingBase user, Entity target, int level)
onEntityDamaged
in class Enchantment