public class EnchantmentDurability extends Enchantment
Enchantment.Rarity
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
name, REGISTRY, type
delegate
Modifier | Constructor and Description |
---|---|
protected |
EnchantmentDurability(Enchantment.Rarity rarityIn,
EntityEquipmentSlot... slots) |
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_) |
calcDamageByCreature, calcModifierDamage, canApplyAtEnchantingTable, canApplyTogether, getEnchantmentByID, getEnchantmentByLocation, getEnchantmentID, getEntityEquipment, getMinLevel, getName, getRarity, getTranslatedName, isAllowedOnBooks, isTreasureEnchantment, onEntityDamaged, onUserHurt, registerEnchantments, setName
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
protected EnchantmentDurability(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 static boolean negateDamage(ItemStack p_92097_0_, int p_92097_1_, java.util.Random p_92097_2_)