net.minecraft.world.item.enchantment

public abstract class Enchantment

byq
net.minecraft.world.item.enchantment.Enchantment
net.minecraft.class_1887
net.minecraft.enchantment.Enchantment
net.minecraft.src.C_1505_
net.minecraft.world.item.enchantment.Enchantment

Field summary

Modifier and TypeField
private final EquipmentSlot[]
a
slots
field_9086
slotTypes
f_44671_
private final Enchantment$Rarity
b
rarity
field_9085
rarity
f_44674_
public final EnchantmentCategory
e
category
field_9083
type
f_44672_
protected String
f
descriptionId
field_9084
translationKey
f_44673_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static Enchantment
c(int arg0)
byId(int arg0)
method_8191(int arg0)
byRawId(int id)
m_44697_(int p_44698_)
public Map<EquipmentSlot, ItemStack>
a(axy arg0)
getSlotItems(LivingEntity arg0)
method_8185(class_1309 arg0)
getEquipment(LivingEntity entity)
m_44684_(C_524_ arg0)
public Enchantment$Rarity
d()
getRarity()
method_8186()
getRarity()
m_44699_()
public int
e()
getMinLevel()
method_8187()
getMinLevel()
m_44702_()
public int
a()
getMaxLevel()
method_8183()
getMaxLevel()
m_6586_()
public int
a(int arg0)
getMinCost(int arg0)
method_8182(int arg0)
getMinPower(int level)
m_6183_(int arg0)
public int
b(int arg0)
getMaxCost(int arg0)
method_20742(int arg0)
getMaxPower(int level)
m_6175_(int arg0)
public int
a(int arg0, awu arg1)
getDamageProtection(int arg0, DamageSource arg1)
method_8181(int arg0, class_1282 arg1)
getProtectionAmount(int level, DamageSource source)
m_7205_(int p_44681_, C_489_ arg1)
public float
a(int arg0, ayd arg1)
getDamageBonus(int arg0, MobType arg1)
method_8196(int arg0, class_1310 arg1)
getAttackDamage(int level, EntityGroup group)
m_7335_(int p_44683_, C_530_ arg1)
public final boolean
b(byq arg0)
isCompatibleWith(Enchantment arg0)
method_8188(class_1887 arg0)
canCombine(Enchantment other)
m_44695_(C_1505_ arg0)
protected boolean
a(byq arg0)
checkCompatibility(Enchantment arg0)
method_8180(class_1887 arg0)
canAccept(Enchantment other)
m_5975_(C_1505_ arg0)
protected String
f()
getOrCreateDescriptionId()
method_8190()
getOrCreateTranslationKey()
m_44703_()
public String
g()
getDescriptionId()
method_8184()
getTranslationKey()
m_44704_()
public Component
d(int arg0)
getFullname(int arg0)
method_8179(int arg0)
getName(int level)
m_44700_(int arg0)
public boolean
a(buw arg0)
canEnchant(ItemStack arg0)
method_8192(class_1799 arg0)
isAcceptableItem(ItemStack stack)
m_6081_(C_1391_ arg0)
public void
a(axy arg0, axk 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)
m_7677_(C_524_ p_44687_, C_507_ p_44688_, int arg2)
public void
b(axy arg0, axk 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)
m_7675_(C_524_ p_44693_, C_507_ p_44694_, int arg2)
public boolean
b()
isTreasureOnly()
method_8193()
isTreasure()
m_6591_()
public boolean
c()
isCurse()
method_8195()
isCursed()
m_6589_()
public boolean
h()
isTradeable()
method_25949()
isAvailableForEnchantedBookOffer()
m_6594_()
public boolean
i()
isDiscoverable()
method_25950()
isAvailableForRandomSelection()
m_6592_()