public class EnchantmentBreaking extends ConfigurableEnchantment
eConfigaquaAffinity, baneOfArthropods, blastProtection, effectId, efficiency, enchantmentsBookList, enchantmentsList, featherFalling, field_151369_A, field_151370_z, fireAspect, fireProtection, flame, fortune, infinity, knockback, looting, name, power, projectileProtection, protection, punch, respiration, sharpness, silkTouch, smite, thorns, type, unbreaking| Modifier and Type | Method and Description |
|---|---|
static void |
amplifyDamage(net.minecraft.item.ItemStack itemStack,
int enchantmentListID,
java.util.Random random)
Used by ItemStack.attemptDamageItem.
|
boolean |
canApplyAtEnchantingTable(net.minecraft.item.ItemStack itemStack) |
static EnchantmentBreaking |
getInstance()
Get the unique instance.
|
int |
getMaxEnchantability(int level) |
int |
getMaxLevel() |
int |
getMinEnchantability(int level) |
static void |
initInstance(ExtendedConfig<EnchantmentConfig> eConfig)
Initialise the configurable.
|
boolean |
isAllowedOnBooks() |
getConfig, getTranslatedNamepublic static void initInstance(ExtendedConfig<EnchantmentConfig> eConfig)
eConfig - The config.public static EnchantmentBreaking getInstance()
public int getMinEnchantability(int level)
getMinEnchantability in class net.minecraft.enchantment.Enchantmentpublic int getMaxEnchantability(int level)
getMaxEnchantability in class net.minecraft.enchantment.Enchantmentpublic int getMaxLevel()
getMaxLevel in class net.minecraft.enchantment.Enchantmentpublic boolean canApplyAtEnchantingTable(net.minecraft.item.ItemStack itemStack)
canApplyAtEnchantingTable in class net.minecraft.enchantment.Enchantmentpublic boolean isAllowedOnBooks()
isAllowedOnBooks in class net.minecraft.enchantment.Enchantmentpublic static void amplifyDamage(net.minecraft.item.ItemStack itemStack,
int enchantmentListID,
java.util.Random random)
itemStack - The ItemStack.enchantmentListID - Enchantments.random - A random object.