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, setNamepublic EnchantmentDamage(int enchID,
ResourceLocation enchName,
int enchWeight,
int classification)
public int getMinEnchantability(int enchantmentLevel)
getMinEnchantability in class Enchantmentpublic int getMaxEnchantability(int enchantmentLevel)
getMaxEnchantability in class Enchantmentpublic int getMaxLevel()
getMaxLevel in class Enchantmentpublic float calcDamageByCreature(int level,
EnumCreatureAttribute creatureType)
calcDamageByCreature in class Enchantmentpublic java.lang.String getName()
getName in class Enchantmentpublic boolean canApplyTogether(Enchantment ench)
canApplyTogether in class Enchantmentpublic boolean canApply(ItemStack stack)
canApply in class Enchantmentpublic void onEntityDamaged(EntityLivingBase user, Entity target, int level)
onEntityDamaged in class Enchantment