net.minecraft.world.item.enchantment

public record Enchantment

dff
net.minecraft.world.item.enchantment.Enchantment
net.minecraft.class_1887
net.minecraft.enchantment.Enchantment

Field summary

Modifier and TypeField
private final Component
e
description
comp_2686
description
private final Enchantment$EnchantmentDefinition
f
definition
comp_2687
definition
private final HolderSet<Enchantment>
g
exclusiveSet
comp_2688
exclusiveSet
private final DataComponentMap
h
effects
comp_2689
effects
public static final int
a
MAX_LEVEL
field_51949
MAX_LEVEL
public static final com.mojang.serialization.Codec<Enchantment>
b
DIRECT_CODEC
field_51643
CODEC
public static final com.mojang.serialization.Codec<Holder<Enchantment>>
c
CODEC
field_51644
ENTRY_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<Enchantment>>
d
STREAM_CODEC
field_51950
ENTRY_PACKET_CODEC

Constructor summary

ModifierConstructor
public (Component arg0, Enchantment$EnchantmentDefinition arg1, HolderSet<Enchantment> arg2, DataComponentMap arg3)

Method summary

Modifier and TypeMethod
public static Enchantment$Cost
a(int arg0)
constantCost(int arg0)
method_58440(int arg0)
constantCost(int base)
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)
public static Enchantment$EnchantmentDefinition
a(ji<cyo> arg0, ji<cyo> arg1, int arg2, int arg3, dff$b arg4, dff$b arg5, int arg6, bwl... 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)
public static Enchantment$EnchantmentDefinition
a(ji<cyo> arg0, int arg1, int arg2, dff$b arg3, dff$b arg4, int arg5, bwl... 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)
public Map<EquipmentSlot, ItemStack>
a(bwz arg0)
getSlotItems(LivingEntity arg0)
method_8185(class_1309 arg0)
getEquipment(LivingEntity entity)
public HolderSet<Item>
a()
getSupportedItems()
method_56109()
getApplicableItems()
public boolean
a(bwk arg0)
matchingSlot(EquipmentSlot arg0)
method_60026(class_1304 arg0)
slotMatches(EquipmentSlot slot)
public boolean
a(cys arg0)
isPrimaryItem(ItemStack arg0)
method_58444(class_1799 arg0)
isPrimaryItem(ItemStack stack)
public boolean
b(cys arg0)
isSupportedItem(ItemStack arg0)
method_60046(class_1799 arg0)
isSupportedItem(ItemStack stack)
public int
b()
getWeight()
method_58445()
getWeight()
public int
c()
getAnvilCost()
method_58446()
getAnvilCost()
public int
d()
getMinLevel()
method_8187()
getMinLevel()
public int
e()
getMaxLevel()
method_8183()
getMaxLevel()
public int
b(int arg0)
getMinCost(int arg0)
method_8182(int arg0)
getMinPower(int level)
public int
c(int arg0)
getMaxCost(int arg0)
method_20742(int arg0)
getMaxPower(int level)
public static boolean
a(je<dff> arg0, je<dff> 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)
public static Component
a(je<dff> arg0, int arg1)
getFullname(Holder<Enchantment> arg0, int arg1)
method_8179(class_6880<class_1887> arg0, int arg1)
getName(RegistryEntry<Enchantment> enchantment, int level)
public boolean
c(cys arg0)
canEnchant(ItemStack arg0)
method_8192(class_1799 arg0)
isAcceptableItem(ItemStack stack)
public <T> List<T>
a(ki<List<T>> arg0)
getEffects(DataComponentType<List<T>> arg0)
method_60034(class_9331<List<T>> arg0)
getEffect(ComponentType<List<T>> type)
public boolean
a(aro arg0, int arg1, bwa arg2, bup 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)
public void
a(aro arg0, int arg1, cys arg2, bwa arg3, bup 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)
public void
a(aro arg0, int arg1, cys 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)
public void
b(aro arg0, int arg1, cys 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)
public void
c(aro arg0, int arg1, cys 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)
public void
d(aro arg0, int arg1, cys 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)
public void
a(aro arg0, int arg1, cys arg2, bwa 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)
public void
e(aro arg0, int arg1, cys 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)
modifyRepairWithExperience(ServerWorld world, int level, ItemStack stack, org.apache.commons.lang3.mutable.MutableFloat repairWithExperience)
public void
b(aro arg0, int arg1, cys arg2, bwa 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)
public void
a(azt 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)
public void
c(aro arg0, int arg1, cys arg2, bwa 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)
public void
d(aro arg0, int arg1, cys arg2, bwa 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)
public void
b(aro arg0, int arg1, cys arg2, bwa arg3, bup 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)
public void
c(aro arg0, int arg1, cys arg2, bwa arg3, bup 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)
public void
d(aro arg0, int arg1, cys arg2, bwa arg3, bup 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)
public void
e(aro arg0, int arg1, cys arg2, bwa arg3, bup 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)
public void
a(aro arg0, int arg1, dfe arg2, dfj arg3, bwa arg4, bup 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)
public static void
a(dfo<dfw> arg0, aro arg1, int arg2, dfe arg3, bwa arg4, bup 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)
public void
e(aro arg0, int arg1, cys arg2, bwa 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)
public void
f(aro arg0, int arg1, cys arg2, bwa 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)
public void
b(azt 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)
public void
a(ki<dfy> arg0, azt 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)
public void
a(aro arg0, int arg1, dfe arg2, bwa 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)
public void
b(aro arg0, int arg1, dfe arg2, bwa 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)
public void
a(aro arg0, int arg1, dfe arg2, bwa arg3, fdw arg4, dzo 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)
private void
a(ki<List<dfc<dfy>>> arg0, aro arg1, int arg2, cys 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)
private void
a(ki<List<dfc<dfy>>> arg0, aro arg1, int arg2, cys arg3, bwa 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)
private void
a(ki<List<dfc<dfy>>> arg0, aro arg1, int arg2, cys arg3, bwa arg4, bup 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)
public static LootContext
b(aro arg0, int arg1, bwa arg2, bup 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)
private static LootContext
a(aro arg0, int arg1, cys 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)
private static LootContext
a(aro arg0, int arg1, bwa 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)
private static LootContext
a(aro arg0, int arg1, bwa arg2, fdw 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)
private static LootContext
a(aro arg0, int arg1, bwa arg2, fdw arg3, dzo 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)
private static <T> void
a(List<dfc<T>> arg0, eyn 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)
public void
a(aro arg0, int arg1, dfe arg2, bwz 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)
public void
a(int arg0, dfe arg1, bwz 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)
public static Enchantment$Builder
a(dff$c arg0)
enchantment(Enchantment$EnchantmentDefinition arg0)
method_60030(class_1887$class_9427 arg0)
builder(Enchantment$Definition definition)
public Component
f()
description()
comp_2686()
description()
public Enchantment$EnchantmentDefinition
g()
definition()
comp_2687()
definition()
public HolderSet<Enchantment>
h()
exclusiveSet()
comp_2688()
exclusiveSet()
public DataComponentMap
i()
effects()
comp_2689()
effects()