net.minecraft.world.item.enchantment

public class EnchantmentHelper

dae
net.minecraft.world.item.enchantment.EnchantmentHelper
net.minecraft.class_1890
net.minecraft.enchantment.EnchantmentHelper
net.minecraft.src.C_1522_
net.minecraft.world.item.enchantment.EnchantmentManager

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static int
a(jm<dac> arg0, cuq arg1)
getItemEnchantmentLevel(Holder<Enchantment> arg0, ItemStack arg1)
method_8225(class_6880<class_1887> arg0, class_1799 arg1)
getLevel(RegistryEntry<Enchantment> enchantment, ItemStack stack)
m_44843_(C_203228_<C_1505_> p_344652_, C_1391_ p_44845_)
public static ItemEnchantments
a(cuq arg0, Consumer<dai$a> arg1)
updateEnchantments(ItemStack arg0, Consumer<ItemEnchantments$Mutable> arg1)
method_57531(class_1799 arg0, Consumer<class_9304$class_9305> arg1)
apply(ItemStack stack, Consumer<ItemEnchantmentsComponent$Builder> applier)
m_320959_(C_1391_ p_333740_, Consumer<C_313873_$C_313506_> p_328467_)
public static boolean
a(cuq arg0)
canStoreEnchantments(ItemStack arg0)
method_57529(class_1799 arg0)
canHaveEnchantments(ItemStack stack)
m_320740_(C_1391_ p_333572_)
public static void
a(cuq arg0, dai arg1)
setEnchantments(ItemStack arg0, ItemEnchantments arg1)
method_57530(class_1799 arg0, class_9304 arg1)
set(ItemStack stack, ItemEnchantmentsComponent enchantments)
m_44865_(C_1391_ p_44867_, C_313873_ p_330134_)
public static ItemEnchantments
b(cuq arg0)
getEnchantmentsForCrafting(ItemStack arg0)
method_57532(class_1799 arg0)
getEnchantments(ItemStack stack)
m_324152_(C_1391_ p_335659_)
private static DataComponentType<ItemEnchantments>
d(cuq arg0)
getComponentType(ItemStack arg0)
method_57533(class_1799 arg0)
getEnchantmentsComponentType(ItemStack stack)
m_322805_(C_1391_ p_335414_)
public static boolean
c(cuq arg0)
hasAnyEnchantments(ItemStack arg0)
method_58117(class_1799 arg0)
hasEnchantments(ItemStack stack)
m_322755_(C_1391_ p_335287_)
public static int
a(aqu arg0, cuq arg1, int arg2)
processDurabilityChange(ServerLevel arg0, ItemStack arg1, int arg2)
method_60117(class_3218 arg0, class_1799 arg1, int arg2)
getItemDamage(ServerWorld world, ItemStack stack, int baseItemDamage)
m_338768_(C_12_ p_344040_, C_1391_ p_345474_, int p_342600_)
public static int
a(aqu arg0, cuq arg1, cuq arg2, int arg3)
processAmmoUse(ServerLevel arg0, ItemStack arg1, ItemStack arg2, int arg3)
method_60129(class_3218 arg0, class_1799 arg1, class_1799 arg2, int arg3)
getAmmoUse(ServerWorld world, ItemStack rangedWeaponStack, ItemStack projectileStack, int baseAmmoUse)
m_339550_(C_12_ p_344585_, C_1391_ p_344182_, C_1391_ p_343578_, int p_342951_)
public static int
b(aqu arg0, cuq arg1, int arg2)
processBlockExperience(ServerLevel arg0, ItemStack arg1, int arg2)
method_60157(class_3218 arg0, class_1799 arg1, int arg2)
getBlockExperience(ServerWorld world, ItemStack stack, int baseBlockExperience)
m_340586_(C_12_ p_343042_, C_1391_ p_343624_, int p_342499_)
public static int
a(aqu arg0, bsr arg1, bsr arg2, int arg3)
processMobExperience(ServerLevel arg0, Entity arg1, Entity arg2, int arg3)
method_60109(class_3218 arg0, class_1297 arg1, class_1297 arg2, int arg3)
getMobExperience(ServerWorld world, Entity attacker, Entity mob, int baseMobExperience)
m_340460_(C_12_ p_343500_, C_507_ p_345230_, C_507_ p_344218_, int p_342604_)
private static void
a(cuq arg0, dae$b arg1)
runIterationOnItem(ItemStack arg0, EnchantmentHelper$EnchantmentVisitor arg1)
method_8220(class_1799 arg0, class_1890$class_1891 arg1)
forEachEnchantment(ItemStack stack, EnchantmentHelper$Consumer consumer)
m_340521_(C_1391_ p_343610_, C_1522_$C_1523_ p_342837_)
private static void
a(cuq arg0, bsy arg1, btn arg2, dae$a arg3)
runIterationOnItem(ItemStack arg0, EquipmentSlot arg1, LivingEntity arg2, EnchantmentHelper$EnchantmentInSlotVisitor arg3)
method_60139(class_1799 arg0, class_1304 arg1, class_1309 arg2, class_1890$class_9702 arg3)
forEachEnchantment(ItemStack stack, EquipmentSlot slot, LivingEntity entity, EnchantmentHelper$ContextAwareConsumer contextAwareConsumer)
m_44850_(C_1391_ p_44852_, C_516_ p_344793_, C_524_ p_344959_, C_1522_$C_336577_ p_342058_)
private static void
a(btn arg0, dae$a arg1)
runIterationOnEquipment(LivingEntity arg0, EnchantmentHelper$EnchantmentInSlotVisitor arg1)
method_8209(class_1309 arg0, class_1890$class_9702 arg1)
forEachEnchantment(LivingEntity entity, EnchantmentHelper$ContextAwareConsumer contextAwareConsumer)
m_339299_(C_524_ p_344171_, C_1522_$C_336577_ p_343067_)
public static boolean
a(aqu arg0, btn arg1, brk arg2)
isImmuneToDamage(ServerLevel arg0, LivingEntity arg1, DamageSource arg2)
method_60112(class_3218 arg0, class_1309 arg1, class_1282 arg2)
isInvulnerableTo(ServerWorld world, LivingEntity user, DamageSource damageSource)
m_339358_(C_12_ p_343151_, C_524_ p_344523_, C_489_ p_343996_)
public static float
b(aqu arg0, btn arg1, brk arg2)
getDamageProtection(ServerLevel arg0, LivingEntity arg1, DamageSource arg2)
method_8219(class_3218 arg0, class_1309 arg1, class_1282 arg2)
getProtectionAmount(ServerWorld world, LivingEntity user, DamageSource damageSource)
m_44856_(C_12_ p_345416_, C_524_ p_342248_, C_489_ p_44858_)
public static float
a(aqu arg0, cuq arg1, bsr arg2, brk arg3, float arg4)
modifyDamage(ServerLevel arg0, ItemStack arg1, Entity arg2, DamageSource arg3, float arg4)
method_60120(class_3218 arg0, class_1799 arg1, class_1297 arg2, class_1282 arg3, float arg4)
getDamage(ServerWorld world, ItemStack stack, Entity target, DamageSource damageSource, float baseDamage)
m_338960_(C_12_ p_343245_, C_1391_ p_342430_, C_507_ p_344044_, C_489_ p_344705_, float p_344247_)
public static float
b(aqu arg0, cuq arg1, bsr arg2, brk arg3, float arg4)
modifyFallBasedDamage(ServerLevel arg0, ItemStack arg1, Entity arg2, DamageSource arg3, float arg4)
method_60160(class_3218 arg0, class_1799 arg1, class_1297 arg2, class_1282 arg3, float arg4)
getSmashDamagePerFallenBlock(ServerWorld world, ItemStack stack, Entity target, DamageSource damageSource, float baseSmashDamagePerFallenBlock)
m_338992_(C_12_ p_345393_, C_1391_ p_344524_, C_507_ p_343535_, C_489_ p_343627_, float p_342940_)
public static float
c(aqu arg0, cuq arg1, bsr arg2, brk arg3, float arg4)
modifyArmorEffectiveness(ServerLevel arg0, ItemStack arg1, Entity arg2, DamageSource arg3, float arg4)
method_60170(class_3218 arg0, class_1799 arg1, class_1297 arg2, class_1282 arg3, float arg4)
getArmorEffectiveness(ServerWorld world, ItemStack stack, Entity user, DamageSource damageSource, float baseArmorEffectiveness)
m_340291_(C_12_ p_345408_, C_1391_ p_344868_, C_507_ p_345361_, C_489_ p_343275_, float p_345487_)
public static float
d(aqu arg0, cuq arg1, bsr arg2, brk arg3, float arg4)
modifyKnockback(ServerLevel arg0, ItemStack arg1, Entity arg2, DamageSource arg3, float arg4)
method_60175(class_3218 arg0, class_1799 arg1, class_1297 arg2, class_1282 arg3, float arg4)
modifyKnockback(ServerWorld world, ItemStack stack, Entity target, DamageSource damageSource, float baseKnockback)
m_340065_(C_12_ p_344591_, C_1391_ p_345053_, C_507_ p_343711_, C_489_ p_344321_, float p_343554_)
public static void
a(aqu arg0, bsr arg1, brk arg2)
doPostAttackEffects(ServerLevel arg0, Entity arg1, DamageSource arg2)
method_60107(class_3218 arg0, class_1297 arg1, class_1282 arg2)
onTargetDamaged(ServerWorld world, Entity target, DamageSource damageSource)
m_338760_(C_12_ p_343618_, C_507_ p_343098_, C_489_ p_342187_)
public static void
a(aqu arg0, bsr arg1, brk arg2, cuq arg3)
doPostAttackEffectsWithItemSource(ServerLevel arg0, Entity arg1, DamageSource arg2, ItemStack arg3)
method_60619(class_3218 arg0, class_1297 arg1, class_1282 arg2, class_1799 arg3)
onTargetDamaged(ServerWorld world, Entity target, DamageSource damageSource, ItemStack weapon)
m_339422_(C_12_ p_345038_, C_507_ p_342420_, C_489_ p_344777_, C_1391_ p_344587_)
public static void
a(aqu arg0, btn arg1)
runLocationChangedEffects(ServerLevel arg0, LivingEntity arg1)
method_60111(class_3218 arg0, class_1309 arg1)
applyLocationBasedEffects(ServerWorld world, LivingEntity user)
m_339289_(C_12_ p_342390_, C_524_ p_344486_)
public static void
a(aqu arg0, cuq arg1, btn arg2, bsy arg3)
runLocationChangedEffects(ServerLevel arg0, ItemStack arg1, LivingEntity arg2, EquipmentSlot arg3)
method_60125(class_3218 arg0, class_1799 arg1, class_1309 arg2, class_1304 arg3)
applyLocationBasedEffects(ServerWorld world, ItemStack stack, LivingEntity user, EquipmentSlot slot)
m_339954_(C_12_ p_342666_, C_1391_ p_342169_, C_524_ p_343458_, C_516_ p_344449_)
public static void
a(btn arg0)
stopLocationBasedEffects(LivingEntity arg0)
method_60135(class_1309 arg0)
removeLocationBasedEffects(LivingEntity user)
m_339583_(C_524_ p_342428_)
public static void
a(cuq arg0, btn arg1, bsy arg2)
stopLocationBasedEffects(ItemStack arg0, LivingEntity arg1, EquipmentSlot arg2)
method_60141(class_1799 arg0, class_1309 arg1, class_1304 arg2)
removeLocationBasedEffects(ItemStack stack, LivingEntity user, EquipmentSlot slot)
m_338633_(C_1391_ p_343782_, C_524_ p_342864_, C_516_ p_342427_)
public static void
b(aqu arg0, btn arg1)
tickEffects(ServerLevel arg0, LivingEntity arg1)
method_60154(class_3218 arg0, class_1309 arg1)
onTick(ServerWorld world, LivingEntity user)
m_339915_(C_12_ p_344571_, C_524_ p_343172_)
public static int
a(jm<dac> arg0, btn arg1)
getEnchantmentLevel(Holder<Enchantment> arg0, LivingEntity arg1)
method_8203(class_6880<class_1887> arg0, class_1309 arg1)
getEquipmentLevel(RegistryEntry<Enchantment> enchantment, LivingEntity entity)
m_44836_(C_203228_<C_1505_> p_342592_, C_524_ p_44838_)
public static int
a(aqu arg0, cuq arg1, bsr arg2, int arg3)
processProjectileCount(ServerLevel arg0, ItemStack arg1, Entity arg2, int arg3)
method_60119(class_3218 arg0, class_1799 arg1, class_1297 arg2, int arg3)
getProjectileCount(ServerWorld world, ItemStack stack, Entity user, int baseProjectileCount)
m_338952_(C_12_ p_344575_, C_1391_ p_345314_, C_507_ p_343374_, int p_343111_)
public static float
a(aqu arg0, cuq arg1, bsr arg2, float arg3)
processProjectileSpread(ServerLevel arg0, ItemStack arg1, Entity arg2, float arg3)
method_60118(class_3218 arg0, class_1799 arg1, class_1297 arg2, float arg3)
getProjectileSpread(ServerWorld world, ItemStack stack, Entity user, float baseProjectileSpread)
m_339938_(C_12_ p_342105_, C_1391_ p_345162_, C_507_ p_343316_, float p_342659_)
public static int
a(aqu arg0, cuq arg1, cuq arg2)
getPiercingCount(ServerLevel arg0, ItemStack arg1, ItemStack arg2)
method_60128(class_3218 arg0, class_1799 arg1, class_1799 arg2)
getProjectilePiercing(ServerWorld world, ItemStack weaponStack, ItemStack projectileStack)
m_340317_(C_12_ p_343271_, C_1391_ p_345451_, C_1391_ p_343657_)
public static void
a(aqu arg0, cuq arg1, cnd arg2, Consumer<cul> arg3)
onProjectileSpawned(ServerLevel arg0, ItemStack arg1, AbstractArrow arg2, Consumer<Item> arg3)
method_60127(class_3218 arg0, class_1799 arg1, class_1665 arg2, Consumer<class_1792> arg3)
onProjectileSpawned(ServerWorld world, ItemStack weaponStack, PersistentProjectileEntity projectileEntity, Consumer<Item> onBreak)
m_340210_(C_12_ p_343338_, C_1391_ p_344853_, C_1151_ p_345004_, Consumer<C_1381_> p_345317_)
public static void
a(aqu arg0, cuq arg1, btn arg2, bsr arg3, bsy arg4, exc arg5, dtc arg6, Consumer<cul> arg7)
onHitBlock(ServerLevel arg0, ItemStack arg1, LivingEntity arg2, Entity arg3, EquipmentSlot arg4, Vec3 arg5, BlockState arg6, Consumer<Item> arg7)
method_60124(class_3218 arg0, class_1799 arg1, class_1309 arg2, class_1297 arg3, class_1304 arg4, class_243 arg5, class_2680 arg6, Consumer<class_1792> arg7)
onHitBlock(ServerWorld world, ItemStack stack, LivingEntity user, Entity enchantedEntity, EquipmentSlot slot, Vec3d pos, BlockState state, Consumer<Item> onBreak)
m_338456_(C_12_ p_344864_, C_1391_ p_342595_, C_524_ p_345505_, C_507_ p_345420_, C_516_ p_343177_, C_3046_ p_343033_, C_2064_ p_343989_, Consumer<C_1381_> p_344574_)
public static int
c(aqu arg0, cuq arg1, int arg2)
modifyDurabilityToRepairFromXp(ServerLevel arg0, ItemStack arg1, int arg2)
method_60168(class_3218 arg0, class_1799 arg1, int arg2)
getRepairWithXp(ServerWorld world, ItemStack stack, int baseRepairWithXp)
m_339646_(C_12_ p_345080_, C_1391_ p_343144_, int p_342792_)
public static float
a(aqu arg0, btn arg1, brk arg2, float arg3)
processEquipmentDropChance(ServerLevel arg0, LivingEntity arg1, DamageSource arg2, float arg3)
method_60113(class_3218 arg0, class_1309 arg1, class_1282 arg2, float arg3)
getEquipmentDropChance(ServerWorld world, LivingEntity attacker, DamageSource damageSource, float baseEquipmentDropChance)
m_339734_(C_12_ p_342296_, C_524_ p_342126_, C_489_ p_344732_, float p_343626_)
public static void
a(cuq arg0, bsz arg1, BiConsumer<jm<bur>, buu> arg2)
forEachModifier(ItemStack arg0, EquipmentSlotGroup arg1, BiConsumer<Holder<Attribute>, AttributeModifier> arg2)
method_60622(class_1799 arg0, class_9274 arg1, BiConsumer<class_6880<class_1320>, class_1322> arg2)
applyAttributeModifiers(ItemStack stack, AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer)
m_338728_(C_1391_ p_344460_, C_313414_ p_343938_, BiConsumer<C_203228_<C_552_>, C_555_> p_345426_)
public static void
a(cuq arg0, bsy arg1, BiConsumer<jm<bur>, buu> arg2)
forEachModifier(ItemStack arg0, EquipmentSlot arg1, BiConsumer<Holder<Attribute>, AttributeModifier> arg2)
method_60140(class_1799 arg0, class_1304 arg1, BiConsumer<class_6880<class_1320>, class_1322> arg2)
applyAttributeModifiers(ItemStack stack, EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer)
m_340623_(C_1391_ p_343035_, C_516_ p_342305_, BiConsumer<C_203228_<C_552_>, C_555_> p_342639_)
public static int
a(aqu arg0, cuq arg1, bsr arg2)
getFishingLuckBonus(ServerLevel arg0, ItemStack arg1, Entity arg2)
method_8223(class_3218 arg0, class_1799 arg1, class_1297 arg2)
getFishingLuckBonus(ServerWorld world, ItemStack stack, Entity user)
m_44904_(C_12_ p_345183_, C_1391_ p_44905_, C_507_ p_344199_)
public static float
b(aqu arg0, cuq arg1, bsr arg2)
getFishingTimeReduction(ServerLevel arg0, ItemStack arg1, Entity arg2)
method_60158(class_3218 arg0, class_1799 arg1, class_1297 arg2)
getFishingTimeReduction(ServerWorld world, ItemStack stack, Entity user)
m_340139_(C_12_ p_344336_, C_1391_ p_343914_, C_507_ p_342898_)
public static int
c(aqu arg0, cuq arg1, bsr arg2)
getTridentReturnToOwnerAcceleration(ServerLevel arg0, ItemStack arg1, Entity arg2)
method_60169(class_3218 arg0, class_1799 arg1, class_1297 arg2)
getTridentReturnAcceleration(ServerWorld world, ItemStack stack, Entity user)
m_338753_(C_12_ p_342510_, C_1391_ p_342608_, C_507_ p_343773_)
public static float
a(cuq arg0, btn arg1, float arg2)
modifyCrossbowChargingTime(ItemStack arg0, LivingEntity arg1, float arg2)
method_60159(class_1799 arg0, class_1309 arg1, float arg2)
getCrossbowChargeTime(ItemStack stack, LivingEntity user, float baseCrossbowChargeTime)
m_338554_(C_1391_ p_344573_, C_524_ p_343136_, float p_343873_)
public static float
a(cuq arg0, btn arg1)
getTridentSpinAttackStrength(ItemStack arg0, LivingEntity arg1)
method_60123(class_1799 arg0, class_1309 arg1)
getTridentSpinAttackStrength(ItemStack stack, LivingEntity user)
m_340158_(C_1391_ p_345397_, C_524_ p_342067_)
public static boolean
a(cuq arg0, awu<dac> arg1)
hasTag(ItemStack arg0, TagKey<Enchantment> arg1)
method_60138(class_1799 arg0, class_6862<class_1887> arg1)
hasAnyEnchantmentsIn(ItemStack stack, TagKey<Enchantment> tag)
m_338959_(C_1391_ p_344479_, C_203208_<C_1505_> p_343396_)
public static boolean
a(cuq arg0, kp<?> arg1)
has(ItemStack arg0, DataComponentType<?> arg1)
method_60142(class_1799 arg0, class_9331<?> arg1)
hasAnyEnchantmentsWith(ItemStack stack, ComponentType<?> componentType)
m_340193_(C_1391_ p_345483_, C_313543_<?> p_344623_)
public static <T> Optional<T>
b(cuq arg0, kp<List<T>> arg1)
pickHighestLevel(ItemStack arg0, DataComponentType<List<T>> arg1)
method_60165(class_1799 arg0, class_9331<List<T>> arg1)
getEffect(ItemStack stack, ComponentType<List<T>> componentType)
m_338539_(C_1391_ p_343484_, C_313543_<List<T>> p_342070_)
public static <T> com.mojang.datafixers.util.Pair<T, Integer>
c(cuq arg0, kp<T> arg1)
getHighestLevel(ItemStack arg0, DataComponentType<T> arg1)
method_60174(class_1799 arg0, class_9331<T> arg1)
getEffectListAndLevel(ItemStack stack, ComponentType<T> componentType)
m_338726_(C_1391_ p_345335_, C_313543_<T> p_344437_)
public static Optional<EnchantedItemInUse>
a(kp<?> arg0, btn arg1, Predicate<cuq> arg2)
getRandomItemWith(DataComponentType<?> arg0, LivingEntity arg1, Predicate<ItemStack> arg2)
method_8204(class_9331<?> arg0, class_1309 arg1, Predicate<class_1799> arg2)
chooseEquipmentWith(ComponentType<?> componentType, LivingEntity entity, Predicate<ItemStack> stackPredicate)
m_44906_(C_313543_<?> p_345106_, C_524_ p_44908_, Predicate<C_1391_> p_345112_)
public static int
a(ayw arg0, int arg1, int arg2, cuq arg3)
getEnchantmentCost(RandomSource arg0, int arg1, int arg2, ItemStack arg3)
method_8227(class_5819 arg0, int arg1, int arg2, class_1799 arg3)
calculateRequiredExperienceLevel(Random random, int slotIndex, int bookshelfCount, ItemStack stack)
m_220287_(C_212974_ p_220288_, int p_220289_, int p_220290_, C_1391_ p_220291_)
public static ItemStack
a(ayw arg0, cuq arg1, int arg2, ka arg3, Optional<? extends jq<dac>> arg4)
enchantItem(RandomSource arg0, ItemStack arg1, int arg2, RegistryAccess arg3, Optional<? extends HolderSet<Enchantment>> arg4)
method_60133(class_5819 arg0, class_1799 arg1, int arg2, class_5455 arg3, Optional<? extends class_6885<class_1887>> arg4)
enchant(Random random, ItemStack stack, int level, DynamicRegistryManager dynamicRegistryManager, Optional<? extends RegistryEntryList<Enchantment>> enchantments)
m_340557_(C_212974_ p_344212_, C_1391_ p_345193_, int p_344120_, C_4706_ p_345399_, Optional<? extends C_203233_<C_1505_>> p_342141_)
public static ItemStack
a(ayw arg0, cuq arg1, int arg2, Stream<jm<dac>> arg3)
enchantItem(RandomSource arg0, ItemStack arg1, int arg2, Stream<Holder<Enchantment>> arg3)
method_8233(class_5819 arg0, class_1799 arg1, int arg2, Stream<class_6880<class_1887>> arg3)
enchant(Random random, ItemStack stack, int level, Stream<RegistryEntry<Enchantment>> possibleEnchantments)
m_220292_(C_212974_ p_220293_, C_1391_ p_220294_, int p_220295_, Stream<C_203228_<C_1505_>> p_344664_)
public static List<EnchantmentInstance>
b(ayw arg0, cuq arg1, int arg2, Stream<jm<dac>> arg3)
selectEnchantment(RandomSource arg0, ItemStack arg1, int arg2, Stream<Holder<Enchantment>> arg3)
method_8230(class_5819 arg0, class_1799 arg1, int arg2, Stream<class_6880<class_1887>> arg3)
generateEnchantments(Random random, ItemStack stack, int level, Stream<RegistryEntry<Enchantment>> possibleEnchantments)
m_220297_(C_212974_ p_220298_, C_1391_ p_220299_, int p_220300_, Stream<C_203228_<C_1505_>> p_342119_)
public static void
a(List<daf> arg0, daf arg1)
filterCompatibleEnchantments(List<EnchantmentInstance> arg0, EnchantmentInstance arg1)
method_8231(List<class_1889> arg0, class_1889 arg1)
removeConflicts(List<EnchantmentLevelEntry> possibleEntries, EnchantmentLevelEntry pickedEntry)
m_44862_(List<C_1524_> p_44863_, C_1524_ p_44864_)
public static boolean
a(Collection<jm<dac>> arg0, jm<dac> arg1)
isEnchantmentCompatible(Collection<Holder<Enchantment>> arg0, Holder<Enchantment> arg1)
method_8201(Collection<class_6880<class_1887>> arg0, class_6880<class_1887> arg1)
isCompatible(Collection<RegistryEntry<Enchantment>> existing, RegistryEntry<Enchantment> candidate)
m_44859_(Collection<C_203228_<C_1505_>> p_44860_, C_203228_<C_1505_> p_345339_)
public static List<EnchantmentInstance>
a(int arg0, cuq arg1, Stream<jm<dac>> arg2)
getAvailableEnchantmentResults(int arg0, ItemStack arg1, Stream<Holder<Enchantment>> arg2)
method_8229(int arg0, class_1799 arg1, Stream<class_6880<class_1887>> arg2)
getPossibleEntries(int level, ItemStack stack, Stream<RegistryEntry<Enchantment>> possibleEnchantments)
m_44817_(int p_44818_, C_1391_ p_44819_, Stream<C_203228_<C_1505_>> p_342857_)
public static void
a(cuq arg0, ka arg1, akq<dbj> arg2, bqp arg3, ayw arg4)
enchantItemFromProvider(ItemStack arg0, RegistryAccess arg1, ResourceKey<EnchantmentProvider> arg2, DifficultyInstance arg3, RandomSource arg4)
method_60137(class_1799 arg0, class_5455 arg1, class_5321<class_9741> arg2, class_1266 arg3, class_5819 arg4)
applyEnchantmentProvider(ItemStack stack, DynamicRegistryManager registryManager, RegistryKey<EnchantmentProvider> providerKey, LocalDifficulty localDifficulty, Random random)
m_338695_(C_1391_ p_344649_, C_4706_ p_345511_, C_5264_<C_336442_> p_342294_, C_469_ p_343182_, C_212974_ p_344701_)