net.minecraft.world.item.enchantment

public abstract class Enchantment

bfs
net.minecraft.world.item.enchantment.Enchantment
net.minecraft.class_1887
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.Enchantment
net.minecraft.server.v1_14_R1.Enchantment

Field summary

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

Constructor summary

ModifierConstructor
protected (Enchantment$Rarity weight, EnchantmentCategory type, EquipmentSlot[] slotTypes)

Method summary

Modifier and TypeMethod
public Map<EquipmentSlot, ItemStack>
a(aix arg0)
getSlotItems(LivingEntity arg0)
method_8185(class_1309 arg0)
getEquipment(LivingEntity arg0)
func_222181_a(LivingEntity arg0)
public Enchantment$Rarity
d()
getRarity()
method_8186()
getWeight()
func_77324_c()
public int
e()
getMinLevel()
method_8187()
getMinimumLevel()
func_77319_d()
getStartLevel()
public int
a()
getMaxLevel()
method_8183()
getMaximumLevel()
func_77325_b()
getMaxLevel()
public int
a(int arg0)
getMinCost(int arg0)
method_8182(int arg0)
getMinimumPower(int level)
func_77321_a(int arg0)
public int
b(int arg0)
getMaxCost(int arg0)
method_20742(int arg0)
getMaximumPower(int level)
func_223551_b(int arg0)
public int
a(int arg0, ahx arg1)
getDamageProtection(int arg0, DamageSource arg1)
method_8181(int arg0, class_1282 arg1)
getProtectionAmount(int level, DamageSource source)
func_77318_a(int arg0, DamageSource arg1)
public float
a(int arg0, ajb arg1)
getDamageBonus(int arg0, MobType arg1)
method_8196(int arg0, class_1310 arg1)
getAttackDamage(int level, EntityGroup group)
func_152376_a(int arg0, CreatureAttribute arg1)
public final boolean
b(bfs arg0)
isCompatibleWith(Enchantment arg0)
method_8188(class_1887 arg0)
isDifferent(Enchantment other)
func_191560_c(Enchantment arg0)
isCompatible(Enchantment arg0)
protected boolean
a(bfs arg0)
checkCompatibility(Enchantment arg0)
method_8180(class_1887 arg0)
differs(Enchantment other)
func_77326_a(Enchantment arg0)
protected String
f()
getOrCreateDescriptionId()
method_8190()
getOrCreateTranslationKey()
func_210771_f()
public String
g()
getDescriptionId()
method_8184()
getTranslationKey()
func_77320_a()
public Component
d(int arg0)
getFullname(int arg0)
method_8179(int arg0)
getName(int level)
func_200305_d(int arg0)
public boolean
a(bcj arg0)
canEnchant(ItemStack arg0)
method_8192(class_1799 arg0)
isAcceptableItem(ItemStack stack)
func_92089_a(ItemStack arg0)
canEnchant(ItemStack arg0)
public void
a(aix arg0, aio arg1, int arg2)
doPostAttack(LivingEntity arg0, Entity arg1, int arg2)
method_8189(class_1309 arg0, class_1297 arg1, int arg2)
onTargetDamaged(LivingEntity user, Entity target, int level)
func_151368_a(LivingEntity arg0, Entity arg1, int arg2)
public void
b(aix arg0, aio arg1, int arg2)
doPostHurt(LivingEntity arg0, Entity arg1, int arg2)
method_8178(class_1309 arg0, class_1297 arg1, int arg2)
onUserDamaged(LivingEntity user, Entity attacker, int level)
func_151367_b(LivingEntity arg0, Entity arg1, int arg2)
public boolean
b()
isTreasureOnly()
method_8193()
isTreasure()
func_185261_e()
isTreasure()
public boolean
c()
isCurse()
method_8195()
isCursed()
func_190936_d()
public static Enchantment
c(int arg0)
byId(int arg0)
method_8191(int arg0)
byRawId(int id)
func_185262_c(int arg0)