public class EnchantmentUnusing 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 |
|---|---|
boolean |
canApply(net.minecraft.item.ItemStack itemStack) |
static EnchantmentUnusing |
getInstance()
Get the unique instance.
|
int |
getMaxEnchantability(int par1) |
int |
getMaxLevel() |
int |
getMinEnchantability(int par1) |
static void |
initInstance(ExtendedConfig<EnchantmentConfig> eConfig)
Initialise the configurable.
|
static boolean |
unuseTool(net.minecraft.item.ItemStack itemStack)
Check if the given item can be used.
|
getConfig, getTranslatedNamepublic static void initInstance(ExtendedConfig<EnchantmentConfig> eConfig)
eConfig - The config.public static EnchantmentUnusing getInstance()
public int getMinEnchantability(int par1)
getMinEnchantability in class net.minecraft.enchantment.Enchantmentpublic int getMaxEnchantability(int par1)
getMaxEnchantability in class net.minecraft.enchantment.Enchantmentpublic int getMaxLevel()
getMaxLevel in class net.minecraft.enchantment.Enchantmentpublic boolean canApply(net.minecraft.item.ItemStack itemStack)
canApply in class net.minecraft.enchantment.Enchantmentpublic static boolean unuseTool(net.minecraft.item.ItemStack itemStack)
itemStack - The ItemStack that will be unused.