public class EnchantmentDamage extends Enchantment
Enchantment.Rarity
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[] |
DAMAGE_NAMES |
int |
damageType |
private static int[] |
LEVEL_COST |
private static int[] |
LEVEL_COST_SPAN |
private static int[] |
MIN_COST |
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, getEnchantmentByID, getEnchantmentByLocation, getEnchantmentID, getEntityEquipment, getMinLevel, getRarity, getTranslatedName, isAllowedOnBooks, isCompatibleWith, isCurse, isTreasureEnchantment, onUserHurt, registerEnchantments, setName
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
private static final java.lang.String[] DAMAGE_NAMES
private static final int[] MIN_COST
private static final int[] LEVEL_COST
private static final int[] LEVEL_COST_SPAN
public final int damageType
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