public class ConfigurableEnchantment extends net.minecraft.enchantment.Enchantment implements IConfigurable
| Modifier and Type | Field and Description |
|---|---|
protected ExtendedConfig<EnchantmentConfig> |
eConfig |
aquaAffinity, 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 | Constructor and Description |
|---|---|
protected |
ConfigurableEnchantment(ExtendedConfig<EnchantmentConfig> eConfig,
int weight,
net.minecraft.enchantment.EnumEnchantmentType type)
Make a new Enchantment instance
|
| Modifier and Type | Method and Description |
|---|---|
ExtendedConfig<?> |
getConfig() |
java.lang.String |
getTranslatedName(int level) |
addToBookList, calcModifierDamage, canApply, canApplyAtEnchantingTable, canApplyTogether, func_151367_b, func_151368_a, func_152376_a, getMaxEnchantability, getMaxLevel, getMinEnchantability, getMinLevel, getName, getWeight, isAllowedOnBooks, setNameprotected ExtendedConfig<EnchantmentConfig> eConfig
protected ConfigurableEnchantment(ExtendedConfig<EnchantmentConfig> eConfig, int weight, net.minecraft.enchantment.EnumEnchantmentType type)
eConfig - Config for this enchantment.weight - The weight in which this enchantment should occurdtype - The type of enchantmentpublic ExtendedConfig<?> getConfig()
getConfig in interface IConfigurablepublic java.lang.String getTranslatedName(int level)
getTranslatedName in class net.minecraft.enchantment.Enchantment