public class EnchantmentDurability 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| Modifier | Constructor and Description |
|---|---|
protected |
EnchantmentDurability(int enchID,
ResourceLocation enchName,
int enchWeight) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canApply(ItemStack stack) |
int |
getMaxEnchantability(int enchantmentLevel) |
int |
getMaxLevel() |
int |
getMinEnchantability(int enchantmentLevel) |
static boolean |
negateDamage(ItemStack p_92097_0_,
int p_92097_1_,
java.util.Random p_92097_2_) |
addToBookList, calcDamageByCreature, calcModifierDamage, canApplyAtEnchantingTable, canApplyTogether, getEnchantmentById, getEnchantmentByLocation, getLocationNames, getMinLevel, getName, getTranslatedName, getWeight, isAllowedOnBooks, onEntityDamaged, onUserHurt, setNameprotected EnchantmentDurability(int enchID,
ResourceLocation enchName,
int enchWeight)
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 static boolean negateDamage(ItemStack p_92097_0_, int p_92097_1_, java.util.Random p_92097_2_)