net.minecraft.enchantment

public abstract class Enchantment

bfi
net.minecraft.class_1887
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.Enchantment

Field summary

Modifier and TypeField
private final EquipmentSlot[]
a
field_9086
slots
field_185263_a
field_185263_a
private final Enchantment$Rarity
d
field_9085
rarity
field_77333_a
field_77333_a
public EnchantmentCategory
b
field_9083
category
field_77351_y
field_77351_y
protected String
c
field_9084
key
field_77350_z
field_77350_z

Constructor summary

ModifierConstructor
protected (Enchantment$Rarity rarity, EnchantmentCategory category, EquipmentSlot[] slots)

Method summary

Modifier and TypeMethod
public Map<EquipmentSlot, ItemStack>
a(aio arg0)
method_8185(class_1309 arg0)
getEquipment(LivingEntity arg0)
func_222181_a(LivingEntity arg0)
func_222181_a(LivingEntity arg0)
public Enchantment$Rarity
d()
method_8186()
getRarity()
func_77324_c()
getRarity()
public int
e()
method_8187()
getMinLevel()
func_77319_d()
getMinLevel()
public int
a()
method_8183()
getMaxLevel()
func_77325_b()
getMaxLevel()
public int
a(int arg0)
method_8182(int arg0)
getMinXpRequirement(int level)
func_77321_a(int arg0)
getMinEnchantability(int enchantmentLevel)
public int
a(int arg0, aho arg1)
method_8181(int arg0, class_1282 arg1)
getExtraProtection(int level, DamageSource source)
func_77318_a(int arg0, DamageSource arg1)
calcModifierDamage(int level, DamageSource source)
public float
a(int arg0, ais arg1)
method_8196(int arg0, class_1310 arg1)
getExtraDamage(int level, MobType mobType)
func_152376_a(int arg0, CreatureAttribute arg1)
calcDamageByCreature(int level, CreatureAttribute creatureType)
public final boolean
b(bfi arg0)
method_8188(class_1887 arg0)
isCompatibleWith(Enchantment other)
func_191560_c(Enchantment arg0)
isCompatibleWith(Enchantment enchantmentIn)
protected boolean
a(bfi arg0)
method_8180(class_1887 arg0)
isCompatible(Enchantment other)
func_77326_a(Enchantment arg0)
canApplyTogether(Enchantment ench)
protected String
f()
method_8190()
makeTranslationKey()
func_210771_f()
getDefaultTranslationKey()
public String
g()
method_8184()
getTranslationKey()
func_77320_a()
getName()
public Text
d(int arg0)
method_8179(int arg0)
getName(int level)
func_200305_d(int arg0)
getDisplayName(int level)
public boolean
a(bca arg0)
method_8192(class_1799 arg0)
canEnchant(ItemStack item)
func_92089_a(ItemStack arg0)
canApply(ItemStack stack)
public void
a(aio arg0, aif arg1, int arg2)
method_8189(class_1309 arg0, class_1297 arg1, int arg2)
applyDamageWildcard(LivingEntity attacker, Entity target, int level)
func_151368_a(LivingEntity arg0, Entity arg1, int arg2)
onEntityDamaged(LivingEntity user, Entity target, int level)
public void
b(aio arg0, aif arg1, int arg2)
method_8178(class_1309 arg0, class_1297 arg1, int arg2)
applyProtectionWildcard(LivingEntity attacker, Entity target, int level)
func_151367_b(LivingEntity arg0, Entity arg1, int arg2)
onUserHurt(LivingEntity user, Entity attacker, int level)
public boolean
b()
method_8193()
isTreasure()
func_185261_e()
isTreasureEnchantment()
public boolean
c()
method_8195()
isCurse()
func_190936_d()
isCurse()
public static Enchantment
c(int arg0)
method_8191(int arg0)
byId(int id)
func_185262_c(int arg0)
getEnchantmentByID(int id)