public class EnchantmentDamage extends Enchantment
Enchantment.Rarity
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
int |
damageType |
name, REGISTRY, type
delegate
Constructor and Description |
---|
EnchantmentDamage(Enchantment.Rarity rarityIn,
int damageTypeIn,
EntityEquipmentSlot... slots) |
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) |
calcModifierDamage, canApplyAtEnchantingTable, func_191560_c, getEnchantmentByID, getEnchantmentByLocation, getEnchantmentID, getEntityEquipment, getMinLevel, getRarity, getTranslatedName, isAllowedOnBooks, isCurse, isTreasureEnchantment, onUserHurt, registerEnchantments, setName
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public EnchantmentDamage(Enchantment.Rarity rarityIn, int damageTypeIn, EntityEquipmentSlot... slots)
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