public class EnchantmentThorns extends Enchantment
Enchantment.Rarity
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
name, REGISTRY, type
delegate
Constructor and Description |
---|
EnchantmentThorns(Enchantment.Rarity rarityIn,
EntityEquipmentSlot... slots) |
Modifier and Type | Method and Description |
---|---|
boolean |
canApply(ItemStack stack) |
private void |
damageArmor(ItemStack stack,
int amount,
EntityLivingBase entity) |
static int |
getDamage(int level,
java.util.Random rnd) |
int |
getMaxEnchantability(int enchantmentLevel) |
int |
getMaxLevel() |
int |
getMinEnchantability(int enchantmentLevel) |
void |
onUserHurt(EntityLivingBase user,
Entity attacker,
int level) |
static boolean |
shouldHit(int level,
java.util.Random rnd) |
calcDamageByCreature, calcModifierDamage, canApplyAtEnchantingTable, canApplyTogether, getEnchantmentByID, getEnchantmentByLocation, getEnchantmentID, getEntityEquipment, getMinLevel, getName, getRarity, getTranslatedName, isAllowedOnBooks, isCompatibleWith, isCurse, isTreasureEnchantment, onEntityDamaged, registerEnchantments, setName
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public EnchantmentThorns(Enchantment.Rarity rarityIn, 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 boolean canApply(ItemStack stack)
canApply
in class Enchantment
public void onUserHurt(EntityLivingBase user, Entity attacker, int level)
onUserHurt
in class Enchantment
public static boolean shouldHit(int level, java.util.Random rnd)
public static int getDamage(int level, java.util.Random rnd)
private void damageArmor(ItemStack stack, int amount, EntityLivingBase entity)