net.minecraft.world.item.enchantment

public abstract class Enchantment

bpp
net.minecraft.world.item.enchantment.Enchantment
net.minecraft.class_1887
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.Enchantment
net.minecraft.server.v1_16_R2.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
rarity
field_77333_a
public final 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(aqj arg0)
getSlotItems(LivingEntity arg0)
method_8185(class_1309 arg0)
getEquipment(LivingEntity entity)
func_222181_a(LivingEntity arg0)
public Enchantment$Rarity
d()
getRarity()
method_8186()
getRarity()
func_77324_c()
public int
e()
getMinLevel()
method_8187()
getMinLevel()
func_77319_d()
getStartLevel()
public int
a()
getMaxLevel()
method_8183()
getMaxLevel()
func_77325_b()
getMaxLevel()
public int
a(int arg0)
getMinCost(int arg0)
method_8182(int arg0)
getMinPower(int level)
func_77321_a(int arg0)
public int
b(int arg0)
getMaxCost(int arg0)
method_20742(int arg0)
getMaxPower(int level)
func_223551_b(int arg0)
public int
a(int arg0, aph 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, aqn 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(bpp arg0)
isCompatibleWith(Enchantment arg0)
method_8188(class_1887 arg0)
canCombine(Enchantment other)
func_191560_c(Enchantment arg0)
isCompatible(Enchantment arg0)
protected boolean
a(bpp arg0)
checkCompatibility(Enchantment arg0)
method_8180(class_1887 arg0)
canAccept(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(bly arg0)
canEnchant(ItemStack arg0)
method_8192(class_1799 arg0)
isAcceptableItem(ItemStack stack)
func_92089_a(ItemStack arg0)
canEnchant(ItemStack arg0)
public void
a(aqj arg0, apx 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(aqj arg0, apx 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 boolean
h()
isTradeable()
method_25949()
isAvailableForEnchantedBookOffer()
func_230309_h_()
public boolean
i()
isDiscoverable()
method_25950()
isAvailableForRandomSelection()
func_230310_i_()
public static Enchantment
c(int arg0)
byId(int arg0)
method_8191(int arg0)
byRawId(int id)
func_185262_c(int arg0)