net.minecraft.world.item.enchantment

public record Enchantment

dac
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 Component
e
description
comp_2686
description
f_337607_
private final Enchantment$EnchantmentDefinition
f
definition
comp_2687
definition
f_316889_
private final HolderSet<Enchantment>
g
exclusiveSet
comp_2688
exclusiveSet
f_336996_
private final DataComponentMap
h
effects
comp_2689
effects
f_336810_
public static final int
a
MAX_LEVEL
field_51949
MAX_LEVEL
f_336973_
public static final com.mojang.serialization.Codec<Enchantment>
b
DIRECT_CODEC
field_51643
CODEC
f_337147_
public static final com.mojang.serialization.Codec<Holder<Enchantment>>
c
CODEC
field_51644
ENTRY_CODEC
f_337121_
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<Enchantment>>
d
STREAM_CODEC
field_51950
ENTRY_PACKET_CODEC
f_337378_

Constructor summary

ModifierConstructor
public (Component definition, Enchantment$EnchantmentDefinition exclusiveSet, HolderSet<Enchantment> effects, DataComponentMap arg3)

Method summary

Modifier and TypeMethod
public static Enchantment$Cost
a(int arg0)
constantCost(int arg0)
method_58440(int arg0)
constantCost(int base)
m_322287_(int p_334530_)
public static Enchantment$Cost
a(int arg0, int arg1)
dynamicCost(int arg0, int arg1)
method_58441(int arg0, int arg1)
leveledCost(int base, int perLevel)
m_318803_(int p_334326_, int p_335507_)
public static Enchantment$EnchantmentDefinition
a(jq<cul> arg0, jq<cul> arg1, int arg2, int arg3, dac$b arg4, dac$b arg5, int arg6, bsz... arg7)
definition(HolderSet<Item> arg0, HolderSet<Item> arg1, int arg2, int arg3, Enchantment$Cost arg4, Enchantment$Cost arg5, int arg6, EquipmentSlotGroup... arg7)
method_58443(class_6885<class_1792> arg0, class_6885<class_1792> arg1, int arg2, int arg3, class_1887$class_9426 arg4, class_1887$class_9426 arg5, int arg6, class_9274... arg7)
definition(RegistryEntryList<Item> supportedItems, RegistryEntryList<Item> primaryItems, int weight, int maxLevel, Enchantment$Cost minCost, Enchantment$Cost maxCost, int anvilCost, AttributeModifierSlot... slots)
m_322764_(C_203233_<C_1381_> p_345362_, C_203233_<C_1381_> p_343516_, int p_328611_, int p_336009_, C_1505_$C_313532_ p_330605_, C_1505_$C_313532_ p_333983_, int p_327771_, C_313414_... p_344843_)
public static Enchantment$EnchantmentDefinition
a(jq<cul> arg0, int arg1, int arg2, dac$b arg3, dac$b arg4, int arg5, bsz... arg6)
definition(HolderSet<Item> arg0, int arg1, int arg2, Enchantment$Cost arg3, Enchantment$Cost arg4, int arg5, EquipmentSlotGroup... arg6)
method_58442(class_6885<class_1792> arg0, int arg1, int arg2, class_1887$class_9426 arg3, class_1887$class_9426 arg4, int arg5, class_9274... arg6)
definition(RegistryEntryList<Item> supportedItems, int weight, int maxLevel, Enchantment$Cost minCost, Enchantment$Cost maxCost, int anvilCost, AttributeModifierSlot... slots)
m_319628_(C_203233_<C_1381_> p_342934_, int p_329635_, int p_331888_, C_1505_$C_313532_ p_328182_, C_1505_$C_313532_ p_328787_, int p_333931_, C_313414_... p_342587_)
public Map<EquipmentSlot, ItemStack>
a(btn arg0)
getSlotItems(LivingEntity arg0)
method_8185(class_1309 arg0)
getEquipment(LivingEntity entity)
m_44684_(C_524_ arg0)
public HolderSet<Item>
a()
getSupportedItems()
method_56109()
getApplicableItems()
m_318986_()
public boolean
a(bsy arg0)
matchingSlot(EquipmentSlot arg0)
method_60026(class_1304 arg0)
slotMatches(EquipmentSlot slot)
m_340448_(C_516_ arg0)
public boolean
a(cuq arg0)
isPrimaryItem(ItemStack arg0)
method_58444(class_1799 arg0)
isPrimaryItem(ItemStack stack)
m_320566_(C_1391_ arg0)
public boolean
b(cuq arg0)
isSupportedItem(ItemStack arg0)
method_60046(class_1799 arg0)
isSupportedItem(ItemStack stack)
m_340333_(C_1391_ arg0)
public int
b()
getWeight()
method_58445()
getWeight()
m_322444_()
public int
c()
getAnvilCost()
method_58446()
getAnvilCost()
m_320305_()
public int
d()
getMinLevel()
method_8187()
getMinLevel()
m_44702_()
public int
e()
getMaxLevel()
method_8183()
getMaxLevel()
m_6586_()
public int
b(int arg0)
getMinCost(int arg0)
method_8182(int arg0)
getMinPower(int level)
m_6183_(int arg0)
public int
c(int arg0)
getMaxCost(int arg0)
method_20742(int arg0)
getMaxPower(int level)
m_6175_(int arg0)
public static boolean
a(jm<dac> arg0, jm<dac> arg1)
areCompatible(Holder<Enchantment> arg0, Holder<Enchantment> arg1)
method_60033(class_6880<class_1887> arg0, class_6880<class_1887> arg1)
canBeCombined(RegistryEntry<Enchantment> first, RegistryEntry<Enchantment> second)
m_339848_(C_203228_<C_1505_> p_345028_, C_203228_<C_1505_> p_342568_)
public static Component
a(jm<dac> arg0, int arg1)
getFullname(Holder<Enchantment> arg0, int arg1)
method_8179(class_6880<class_1887> arg0, int arg1)
getName(RegistryEntry<Enchantment> enchantment, int level)
m_44700_(C_203228_<C_1505_> p_342825_, int p_44701_)
public boolean
c(cuq arg0)
canEnchant(ItemStack arg0)
method_8192(class_1799 arg0)
isAcceptableItem(ItemStack stack)
m_6081_(C_1391_ arg0)
public <T> List<T>
a(kp<List<T>> arg0)
getEffects(DataComponentType<List<T>> arg0)
method_60034(class_9331<List<T>> arg0)
getEffect(ComponentType<List<T>> type)
m_339699_(C_313543_<List<T>> arg0)
public boolean
a(aqu arg0, int arg1, bsr arg2, brk arg3)
isImmuneToDamage(ServerLevel arg0, int arg1, Entity arg2, DamageSource arg3)
method_60014(class_3218 arg0, int arg1, class_1297 arg2, class_1282 arg3)
hasDamageImmunityTo(ServerWorld world, int level, Entity user, DamageSource damageSource)
m_339556_(C_12_ p_345313_, int p_342613_, C_507_ p_345401_, C_489_ arg3)
public void
a(aqu arg0, int arg1, cuq arg2, bsr arg3, brk arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
modifyDamageProtection(ServerLevel arg0, int arg1, ItemStack arg2, Entity arg3, DamageSource arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
method_60018(class_3218 arg0, int arg1, class_1799 arg2, class_1297 arg3, class_1282 arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
modifyDamageProtection(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat damageProtection)
m_339392_(C_12_ p_344297_, int p_345382_, C_1391_ p_342229_, C_507_ p_342824_, C_489_ p_345325_, org.apache.commons.lang3.mutable.MutableFloat arg5)
public void
a(aqu arg0, int arg1, cuq arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
modifyDurabilityChange(ServerLevel arg0, int arg1, ItemStack arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
method_60020(class_3218 arg0, int arg1, class_1799 arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
modifyItemDamage(ServerWorld world, int level, ItemStack stack, org.apache.commons.lang3.mutable.MutableFloat itemDamage)
m_338445_(C_12_ p_345090_, int p_343700_, C_1391_ p_343591_, org.apache.commons.lang3.mutable.MutableFloat arg3)
public void
b(aqu arg0, int arg1, cuq arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
modifyAmmoCount(ServerLevel arg0, int arg1, ItemStack arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
method_60043(class_3218 arg0, int arg1, class_1799 arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
modifyAmmoUse(ServerWorld world, int level, ItemStack projectileStack, org.apache.commons.lang3.mutable.MutableFloat ammoUse)
m_338670_(C_12_ p_342884_, int p_344742_, C_1391_ p_343607_, org.apache.commons.lang3.mutable.MutableFloat arg3)
public void
c(aqu arg0, int arg1, cuq arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
modifyPiercingCount(ServerLevel arg0, int arg1, ItemStack arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
method_60050(class_3218 arg0, int arg1, class_1799 arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
modifyProjectilePiercing(ServerWorld world, int level, ItemStack stack, org.apache.commons.lang3.mutable.MutableFloat projectilePiercing)
m_340203_(C_12_ p_344838_, int p_343994_, C_1391_ p_342065_, org.apache.commons.lang3.mutable.MutableFloat arg3)
public void
d(aqu arg0, int arg1, cuq arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
modifyBlockExperience(ServerLevel arg0, int arg1, ItemStack arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
method_60053(class_3218 arg0, int arg1, class_1799 arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
modifyBlockExperience(ServerWorld world, int level, ItemStack stack, org.apache.commons.lang3.mutable.MutableFloat blockExperience)
m_339476_(C_12_ p_343543_, int p_343319_, C_1391_ p_342766_, org.apache.commons.lang3.mutable.MutableFloat arg3)
public void
a(aqu arg0, int arg1, cuq arg2, bsr arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyMobExperience(ServerLevel arg0, int arg1, ItemStack arg2, Entity arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
method_60019(class_3218 arg0, int arg1, class_1799 arg2, class_1297 arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyMobExperience(ServerWorld world, int level, ItemStack stack, Entity user, org.apache.commons.lang3.mutable.MutableFloat mobExperience)
m_339285_(C_12_ p_342521_, int p_344064_, C_1391_ p_342215_, C_507_ p_345517_, org.apache.commons.lang3.mutable.MutableFloat arg4)
public void
e(aqu arg0, int arg1, cuq arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
modifyDurabilityToRepairFromXp(ServerLevel arg0, int arg1, ItemStack arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
method_60056(class_3218 arg0, int arg1, class_1799 arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
modifyRepairWithXp(ServerWorld world, int level, ItemStack stack, org.apache.commons.lang3.mutable.MutableFloat repairWithXp)
m_339458_(C_12_ p_343123_, int p_343007_, C_1391_ p_342327_, org.apache.commons.lang3.mutable.MutableFloat arg3)
public void
b(aqu arg0, int arg1, cuq arg2, bsr arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyTridentReturnToOwnerAcceleration(ServerLevel arg0, int arg1, ItemStack arg2, Entity arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
method_60042(class_3218 arg0, int arg1, class_1799 arg2, class_1297 arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyTridentReturnAcceleration(ServerWorld world, int level, ItemStack stack, Entity user, org.apache.commons.lang3.mutable.MutableFloat tridentReturnAcceleration)
m_338740_(C_12_ p_345042_, int p_343051_, C_1391_ p_342961_, C_507_ p_343498_, org.apache.commons.lang3.mutable.MutableFloat arg4)
public void
a(ayw arg0, int arg1, org.apache.commons.lang3.mutable.MutableFloat arg2)
modifyTridentSpinAttackStrength(RandomSource arg0, int arg1, org.apache.commons.lang3.mutable.MutableFloat arg2)
method_60049(class_5819 arg0, int arg1, org.apache.commons.lang3.mutable.MutableFloat arg2)
modifyTridentSpinAttackStrength(Random random, int level, org.apache.commons.lang3.mutable.MutableFloat tridentSpinAttackStrength)
m_340467_(C_212974_ p_342342_, int p_342582_, org.apache.commons.lang3.mutable.MutableFloat arg2)
public void
c(aqu arg0, int arg1, cuq arg2, bsr arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyFishingTimeReduction(ServerLevel arg0, int arg1, ItemStack arg2, Entity arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
method_60052(class_3218 arg0, int arg1, class_1799 arg2, class_1297 arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyFishingTimeReduction(ServerWorld world, int level, ItemStack stack, Entity user, org.apache.commons.lang3.mutable.MutableFloat fishingTimeReduction)
m_339279_(C_12_ p_344690_, int p_342235_, C_1391_ p_344564_, C_507_ p_345086_, org.apache.commons.lang3.mutable.MutableFloat arg4)
public void
d(aqu arg0, int arg1, cuq arg2, bsr arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyFishingLuckBonus(ServerLevel arg0, int arg1, ItemStack arg2, Entity arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
method_60055(class_3218 arg0, int arg1, class_1799 arg2, class_1297 arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyFishingLuckBonus(ServerWorld world, int level, ItemStack stack, Entity user, org.apache.commons.lang3.mutable.MutableFloat fishingLuckBonus)
m_338592_(C_12_ p_343343_, int p_344550_, C_1391_ p_343347_, C_507_ p_345240_, org.apache.commons.lang3.mutable.MutableFloat arg4)
public void
b(aqu arg0, int arg1, cuq arg2, bsr arg3, brk arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
modifyDamage(ServerLevel arg0, int arg1, ItemStack arg2, Entity arg3, DamageSource arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
method_60041(class_3218 arg0, int arg1, class_1799 arg2, class_1297 arg3, class_1282 arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
modifyDamage(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat damage)
m_339305_(C_12_ p_344751_, int p_342664_, C_1391_ p_344239_, C_507_ p_345253_, C_489_ p_344727_, org.apache.commons.lang3.mutable.MutableFloat arg5)
public void
c(aqu arg0, int arg1, cuq arg2, bsr arg3, brk arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
modifyFallBasedDamage(ServerLevel arg0, int arg1, ItemStack arg2, Entity arg3, DamageSource arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
method_60048(class_3218 arg0, int arg1, class_1799 arg2, class_1297 arg3, class_1282 arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
modifySmashDamagePerFallenBlock(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat smashDamagePerFallenBlock)
m_339857_(C_12_ p_342769_, int p_344741_, C_1391_ p_344920_, C_507_ p_345151_, C_489_ p_343049_, org.apache.commons.lang3.mutable.MutableFloat arg5)
public void
d(aqu arg0, int arg1, cuq arg2, bsr arg3, brk arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
modifyKnockback(ServerLevel arg0, int arg1, ItemStack arg2, Entity arg3, DamageSource arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
method_60051(class_3218 arg0, int arg1, class_1799 arg2, class_1297 arg3, class_1282 arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
modifyKnockback(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat knockback)
m_340270_(C_12_ p_343469_, int p_343441_, C_1391_ p_345003_, C_507_ p_345200_, C_489_ p_345434_, org.apache.commons.lang3.mutable.MutableFloat arg5)
public void
e(aqu arg0, int arg1, cuq arg2, bsr arg3, brk arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
modifyArmorEffectivness(ServerLevel arg0, int arg1, ItemStack arg2, Entity arg3, DamageSource arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
method_60054(class_3218 arg0, int arg1, class_1799 arg2, class_1297 arg3, class_1282 arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
modifyArmorEffectiveness(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat armorEffectiveness)
m_339549_(C_12_ p_343247_, int p_343537_, C_1391_ p_344244_, C_507_ p_344953_, C_489_ p_345146_, org.apache.commons.lang3.mutable.MutableFloat arg5)
public static void
a(dak<das> arg0, aqu arg1, int arg2, dab arg3, bsr arg4, brk arg5)
doPostAttack(TargetedConditionalEffect<EnchantmentEntityEffect> arg0, ServerLevel arg1, int arg2, EnchantedItemInUse arg3, Entity arg4, DamageSource arg5)
method_60031(class_9710<class_9721> arg0, class_3218 arg1, int arg2, class_9699 arg3, class_1297 arg4, class_1282 arg5)
applyTargetedEffect(TargetedEnchantmentEffect<EnchantmentEntityEffect> effect, ServerWorld world, int level, EnchantmentEffectContext context, Entity user, DamageSource damageSource)
m_7677_(C_336488_<C_336426_> p_344913_, C_12_ p_344428_, int p_44688_, C_336528_ p_344260_, C_507_ p_44687_, C_489_ p_344028_)
public void
a(aqu arg0, int arg1, dab arg2, dag arg3, bsr arg4, brk arg5)
doPostAttack(ServerLevel arg0, int arg1, EnchantedItemInUse arg2, EnchantmentTarget arg3, Entity arg4, DamageSource arg5)
method_8189(class_3218 arg0, int arg1, class_9699 arg2, class_9703 arg3, class_1297 arg4, class_1282 arg5)
onTargetDamaged(ServerWorld world, int level, EnchantmentEffectContext context, EnchantmentEffectTarget target, Entity user, DamageSource damageSource)
m_338982_(C_12_ p_343675_, int p_343641_, C_336528_ p_342372_, C_336515_ p_344548_, C_507_ p_342692_, C_489_ arg5)
public void
e(aqu arg0, int arg1, cuq arg2, bsr arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyProjectileCount(ServerLevel arg0, int arg1, ItemStack arg2, Entity arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
method_60057(class_3218 arg0, int arg1, class_1799 arg2, class_1297 arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyProjectileCount(ServerWorld world, int level, ItemStack stack, Entity user, org.apache.commons.lang3.mutable.MutableFloat projectileCount)
m_340107_(C_12_ p_344927_, int p_343332_, C_1391_ p_344173_, C_507_ p_345307_, org.apache.commons.lang3.mutable.MutableFloat arg4)
public void
f(aqu arg0, int arg1, cuq arg2, bsr arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyProjectileSpread(ServerLevel arg0, int arg1, ItemStack arg2, Entity arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
method_60059(class_3218 arg0, int arg1, class_1799 arg2, class_1297 arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyProjectileSpread(ServerWorld world, int level, ItemStack stack, Entity user, org.apache.commons.lang3.mutable.MutableFloat projectileSpread)
m_339143_(C_12_ p_342291_, int p_345308_, C_1391_ p_343809_, C_507_ p_343769_, org.apache.commons.lang3.mutable.MutableFloat arg4)
public void
b(ayw arg0, int arg1, org.apache.commons.lang3.mutable.MutableFloat arg2)
modifyCrossbowChargeTime(RandomSource arg0, int arg1, org.apache.commons.lang3.mutable.MutableFloat arg2)
method_60058(class_5819 arg0, int arg1, org.apache.commons.lang3.mutable.MutableFloat arg2)
modifyCrossbowChargeTime(Random random, int level, org.apache.commons.lang3.mutable.MutableFloat crossbowChargeTime)
m_339334_(C_212974_ p_343593_, int p_343046_, org.apache.commons.lang3.mutable.MutableFloat arg2)
public void
a(kp<dau> arg0, ayw arg1, int arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
modifyUnfilteredValue(DataComponentType<EnchantmentValueEffect> arg0, RandomSource arg1, int arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
method_60506(class_9331<class_9723> arg0, class_5819 arg1, int arg2, org.apache.commons.lang3.mutable.MutableFloat arg3)
modifyValue(ComponentType<EnchantmentValueEffect> type, Random random, int level, org.apache.commons.lang3.mutable.MutableFloat value)
m_339735_(C_313543_<C_336484_> p_344622_, C_212974_ p_343957_, int p_342813_, org.apache.commons.lang3.mutable.MutableFloat arg3)
public void
a(aqu arg0, int arg1, dab arg2, bsr arg3)
tick(ServerLevel arg0, int arg1, EnchantedItemInUse arg2, Entity arg3)
method_60021(class_3218 arg0, int arg1, class_9699 arg2, class_1297 arg3)
onTick(ServerWorld world, int level, EnchantmentEffectContext context, Entity user)
m_339048_(C_12_ p_344388_, int p_344279_, C_336528_ p_342497_, C_507_ arg3)
public void
b(aqu arg0, int arg1, dab arg2, bsr arg3)
onProjectileSpawned(ServerLevel arg0, int arg1, EnchantedItemInUse arg2, Entity arg3)
method_60044(class_3218 arg0, int arg1, class_9699 arg2, class_1297 arg3)
onProjectileSpawned(ServerWorld world, int level, EnchantmentEffectContext context, Entity user)
m_339114_(C_12_ p_344273_, int p_342998_, C_336528_ p_344540_, C_507_ arg3)
public void
a(aqu arg0, int arg1, dab arg2, bsr arg3, exc arg4, dtc arg5)
onHitBlock(ServerLevel arg0, int arg1, EnchantedItemInUse arg2, Entity arg3, Vec3 arg4, BlockState arg5)
method_60023(class_3218 arg0, int arg1, class_9699 arg2, class_1297 arg3, class_243 arg4, class_2680 arg5)
onHitBlock(ServerWorld world, int level, EnchantmentEffectContext context, Entity enchantedEntity, Vec3d pos, BlockState state)
m_338612_(C_12_ p_343622_, int p_344872_, C_336528_ p_342891_, C_507_ p_344312_, C_3046_ p_345016_, C_2064_ arg5)
private void
a(kp<List<daa<dau>>> arg0, aqu arg1, int arg2, cuq arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyItemFilteredCount(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> arg0, ServerLevel arg1, int arg2, ItemStack arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
method_60037(class_9331<List<class_9698<class_9723>>> arg0, class_3218 arg1, int arg2, class_1799 arg3, org.apache.commons.lang3.mutable.MutableFloat arg4)
modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, org.apache.commons.lang3.mutable.MutableFloat value)
m_338936_(C_313543_<List<C_336434_<C_336484_>>> p_342667_, C_12_ p_344856_, int p_343442_, C_1391_ p_342223_, org.apache.commons.lang3.mutable.MutableFloat arg4)
private void
a(kp<List<daa<dau>>> arg0, aqu arg1, int arg2, cuq arg3, bsr arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
modifyEntityFilteredValue(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> arg0, ServerLevel arg1, int arg2, ItemStack arg3, Entity arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
method_60036(class_9331<List<class_9698<class_9723>>> arg0, class_3218 arg1, int arg2, class_1799 arg3, class_1297 arg4, org.apache.commons.lang3.mutable.MutableFloat arg5)
modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, Entity user, org.apache.commons.lang3.mutable.MutableFloat value)
m_338415_(C_313543_<List<C_336434_<C_336484_>>> p_344107_, C_12_ p_342319_, int p_342576_, C_1391_ p_343285_, C_507_ p_342059_, org.apache.commons.lang3.mutable.MutableFloat arg5)
private void
a(kp<List<daa<dau>>> arg0, aqu arg1, int arg2, cuq arg3, bsr arg4, brk arg5, org.apache.commons.lang3.mutable.MutableFloat arg6)
modifyDamageFilteredValue(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> arg0, ServerLevel arg1, int arg2, ItemStack arg3, Entity arg4, DamageSource arg5, org.apache.commons.lang3.mutable.MutableFloat arg6)
method_60035(class_9331<List<class_9698<class_9723>>> arg0, class_3218 arg1, int arg2, class_1799 arg3, class_1297 arg4, class_1282 arg5, org.apache.commons.lang3.mutable.MutableFloat arg6)
modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat value)
m_338395_(C_313543_<List<C_336434_<C_336484_>>> p_344318_, C_12_ p_343892_, int p_345407_, C_1391_ p_343559_, C_507_ p_344560_, C_489_ p_344658_, org.apache.commons.lang3.mutable.MutableFloat arg6)
public static LootContext
b(aqu arg0, int arg1, bsr arg2, brk arg3)
damageContext(ServerLevel arg0, int arg1, Entity arg2, DamageSource arg3)
method_60040(class_3218 arg0, int arg1, class_1297 arg2, class_1282 arg3)
createEnchantedDamageLootContext(ServerWorld world, int level, Entity entity, DamageSource damageSource)
m_338687_(C_12_ p_342651_, int p_344201_, C_507_ p_345425_, C_489_ p_343766_)
private static LootContext
a(aqu arg0, int arg1, cuq arg2)
itemContext(ServerLevel arg0, int arg1, ItemStack arg2)
method_60017(class_3218 arg0, int arg1, class_1799 arg2)
createEnchantedItemLootContext(ServerWorld world, int level, ItemStack stack)
m_340267_(C_12_ p_344430_, int p_344526_, C_1391_ p_343134_)
private static LootContext
a(aqu arg0, int arg1, bsr arg2, boolean arg3)
locationContext(ServerLevel arg0, int arg1, Entity arg2, boolean arg3)
method_60016(class_3218 arg0, int arg1, class_1297 arg2, boolean arg3)
createEnchantedLocationLootContext(ServerWorld world, int level, Entity entity, boolean enchantmentActive)
m_338917_(C_12_ p_342658_, int p_342243_, C_507_ p_345215_, boolean p_342535_)
private static LootContext
a(aqu arg0, int arg1, bsr arg2, exc arg3)
entityContext(ServerLevel arg0, int arg1, Entity arg2, Vec3 arg3)
method_60015(class_3218 arg0, int arg1, class_1297 arg2, class_243 arg3)
createEnchantedEntityLootContext(ServerWorld world, int level, Entity entity, Vec3d pos)
m_338852_(C_12_ p_342654_, int p_343984_, C_507_ p_342853_, C_3046_ p_343585_)
private static LootContext
a(aqu arg0, int arg1, bsr arg2, exc arg3, dtc arg4)
blockHitContext(ServerLevel arg0, int arg1, Entity arg2, Vec3 arg3, BlockState arg4)
method_60768(class_3218 arg0, int arg1, class_1297 arg2, class_243 arg3, class_2680 arg4)
createHitBlockLootContext(ServerWorld world, int level, Entity entity, Vec3d pos, BlockState state)
m_340550_(C_12_ p_342041_, int p_344013_, C_507_ p_345496_, C_3046_ p_343741_, C_2064_ p_342321_)
private static <T> void
a(List<daa<T>> arg0, err arg1, Consumer<T> arg2)
applyEffects(List<ConditionalEffect<T>> arg0, LootContext arg1, Consumer<T> arg2)
method_60032(List<class_9698<T>> arg0, class_47 arg1, Consumer<T> arg2)
applyEffects(List<EnchantmentEffectEntry<T>> entries, LootContext lootContext, Consumer<T> effectConsumer)
m_339822_(List<C_336434_<T>> p_345356_, C_2811_ p_343574_, Consumer<T> p_343387_)
public void
a(aqu arg0, int arg1, dab arg2, btn arg3)
runLocationChangedEffects(ServerLevel arg0, int arg1, EnchantedItemInUse arg2, LivingEntity arg3)
method_60025(class_3218 arg0, int arg1, class_9699 arg2, class_1309 arg3)
applyLocationBasedEffects(ServerWorld world, int level, EnchantmentEffectContext context, LivingEntity user)
m_339772_(C_12_ p_344660_, int p_344903_, C_336528_ p_342969_, C_524_ arg3)
public void
a(int arg0, dab arg1, btn arg2)
stopLocationBasedEffects(int arg0, EnchantedItemInUse arg1, LivingEntity arg2)
method_60013(int arg0, class_9699 arg1, class_1309 arg2)
removeLocationBasedEffects(int level, EnchantmentEffectContext context, LivingEntity user)
m_338727_(int p_342723_, C_336528_ p_345268_, C_524_ arg2)
public static Enchantment$Builder
a(dac$c arg0)
enchantment(Enchantment$EnchantmentDefinition arg0)
method_60030(class_1887$class_9427 arg0)
builder(Enchantment$Definition definition)
m_339092_(C_1505_$C_313387_ p_342298_)
public Component
f()
description()
comp_2686()
description()
f_337607_()
public Enchantment$EnchantmentDefinition
g()
definition()
comp_2687()
definition()
f_316889_()
public HolderSet<Enchantment>
h()
exclusiveSet()
comp_2688()
exclusiveSet()
f_336996_()
public DataComponentMap
i()
effects()
comp_2689()
effects()
f_336810_()