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, setNamepublic EnchantmentThorns(int p_i45764_1_,
ResourceLocation p_i45764_2_,
int p_i45764_3_)
public int getMinEnchantability(int enchantmentLevel)
getMinEnchantability in class Enchantmentpublic int getMaxEnchantability(int enchantmentLevel)
getMaxEnchantability in class Enchantmentpublic int getMaxLevel()
getMaxLevel in class Enchantmentpublic boolean canApply(ItemStack stack)
canApply in class Enchantmentpublic void onUserHurt(EntityLivingBase user, Entity attacker, int level)
onUserHurt in class Enchantmentpublic 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_)