public class EnchantmentThorns extends Enchantment
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 |
---|
EnchantmentThorns(int p_i45764_1_,
ResourceLocation p_i45764_2_,
int p_i45764_3_) |
Modifier and Type | Method and Description |
---|---|
boolean |
canApply(ItemStack stack)
Determines if this enchantment can be applied to a specific ItemStack.
|
static boolean |
func_92094_a(int p_92094_0_,
java.util.Random p_92094_1_) |
static int |
func_92095_b(int p_92095_0_,
java.util.Random p_92095_1_) |
int |
getMaxEnchantability(int enchantmentLevel)
Returns the maximum value of enchantability nedded on the enchantment level passed.
|
int |
getMaxLevel()
Returns the maximum level that the enchantment can have.
|
int |
getMinEnchantability(int enchantmentLevel)
Returns the minimal value of enchantability needed on the enchantment level passed.
|
void |
onUserHurt(EntityLivingBase user,
Entity attacker,
int level)
Whenever an entity that has this enchantment on one of its associated items is damaged this method will be
called.
|
addToBookList, calcDamageByCreature, calcModifierDamage, canApplyAtEnchantingTable, canApplyTogether, func_181077_c, getEnchantmentById, getEnchantmentByLocation, getMinLevel, getName, getTranslatedName, getWeight, isAllowedOnBooks, onEntityDamaged, setName
public EnchantmentThorns(int p_i45764_1_, ResourceLocation p_i45764_2_, int p_i45764_3_)
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 func_92094_a(int p_92094_0_, java.util.Random p_92094_1_)
public static int func_92095_b(int p_92095_0_, java.util.Random p_92095_1_)