Class EnchantmentHelper

java.lang.Object
net.minecraft.enchantment.EnchantmentHelper

public class EnchantmentHelper extends Object
Mappings:
Namespace Name
official cyh
intermediary net/minecraft/class_1890
named net/minecraft/enchantment/EnchantmentHelper
  • Field Details

    • field_38222

      private static final float field_38222
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a:F
      intermediary field_38222 Lnet/minecraft/class_1890;field_38222:F
      named field_38222 Lnet/minecraft/enchantment/EnchantmentHelper;field_38222:F
  • Constructor Details

    • EnchantmentHelper

      public EnchantmentHelper()
  • Method Details

    • getLevel

      public static int getLevel(Enchantment enchantment, ItemStack stack)
      Gets the level of an enchantment on an item stack.
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Lcyg;Lcsz;)I
      intermediary method_8225 Lnet/minecraft/class_1890;method_8225(Lnet/minecraft/class_1887;Lnet/minecraft/class_1799;)I
      named getLevel Lnet/minecraft/enchantment/EnchantmentHelper;getLevel(Lnet/minecraft/enchantment/Enchantment;Lnet/minecraft/item/ItemStack;)I
    • apply

      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Lcsz;Ljava/util/function/Consumer;)Lcyl;
      intermediary method_57531 Lnet/minecraft/class_1890;method_57531(Lnet/minecraft/class_1799;Ljava/util/function/Consumer;)Lnet/minecraft/class_9304;
      named apply Lnet/minecraft/enchantment/EnchantmentHelper;apply(Lnet/minecraft/item/ItemStack;Ljava/util/function/Consumer;)Lnet/minecraft/component/type/ItemEnchantmentsComponent;
    • canHaveEnchantments

      public static boolean canHaveEnchantments(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Lcsz;)Z
      intermediary method_57529 Lnet/minecraft/class_1890;method_57529(Lnet/minecraft/class_1799;)Z
      named canHaveEnchantments Lnet/minecraft/enchantment/EnchantmentHelper;canHaveEnchantments(Lnet/minecraft/item/ItemStack;)Z
    • set

      public static void set(ItemStack stack, ItemEnchantmentsComponent enchantments)
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Lcsz;Lcyl;)V
      intermediary method_57530 Lnet/minecraft/class_1890;method_57530(Lnet/minecraft/class_1799;Lnet/minecraft/class_9304;)V
      named set Lnet/minecraft/enchantment/EnchantmentHelper;set(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/type/ItemEnchantmentsComponent;)V
    • getEnchantments

      public static ItemEnchantmentsComponent getEnchantments(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official b Lcyh;b(Lcsz;)Lcyl;
      intermediary method_57532 Lnet/minecraft/class_1890;method_57532(Lnet/minecraft/class_1799;)Lnet/minecraft/class_9304;
      named getEnchantments Lnet/minecraft/enchantment/EnchantmentHelper;getEnchantments(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/component/type/ItemEnchantmentsComponent;
    • getEnchantmentsComponentType

      private static DataComponentType<ItemEnchantmentsComponent> getEnchantmentsComponentType(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official l Lcyh;l(Lcsz;)Ljz;
      intermediary method_57533 Lnet/minecraft/class_1890;method_57533(Lnet/minecraft/class_1799;)Lnet/minecraft/class_9331;
      named getEnchantmentsComponentType Lnet/minecraft/enchantment/EnchantmentHelper;getEnchantmentsComponentType(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/component/DataComponentType;
    • hasEnchantments

      public static boolean hasEnchantments(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official c Lcyh;c(Lcsz;)Z
      intermediary method_58117 Lnet/minecraft/class_1890;method_58117(Lnet/minecraft/class_1799;)Z
      named hasEnchantments Lnet/minecraft/enchantment/EnchantmentHelper;hasEnchantments(Lnet/minecraft/item/ItemStack;)Z
    • getSweepingMultiplier

      public static float getSweepingMultiplier(int level)
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(I)F
      intermediary method_58448 Lnet/minecraft/class_1890;method_58448(I)F
      named getSweepingMultiplier Lnet/minecraft/enchantment/EnchantmentHelper;getSweepingMultiplier(I)F
    • forEachEnchantment

      private static void forEachEnchantment(EnchantmentHelper.Consumer consumer, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Lcyh$a;Lcsz;)V
      intermediary method_8220 Lnet/minecraft/class_1890;method_8220(Lnet/minecraft/class_1890$class_1891;Lnet/minecraft/class_1799;)V
      named forEachEnchantment Lnet/minecraft/enchantment/EnchantmentHelper;forEachEnchantment(Lnet/minecraft/enchantment/EnchantmentHelper$Consumer;Lnet/minecraft/item/ItemStack;)V
    • forEachEnchantment

      private static void forEachEnchantment(EnchantmentHelper.Consumer consumer, Iterable<ItemStack> stacks)
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Lcyh$a;Ljava/lang/Iterable;)V
      intermediary method_8209 Lnet/minecraft/class_1890;method_8209(Lnet/minecraft/class_1890$class_1891;Ljava/lang/Iterable;)V
      named forEachEnchantment Lnet/minecraft/enchantment/EnchantmentHelper;forEachEnchantment(Lnet/minecraft/enchantment/EnchantmentHelper$Consumer;Ljava/lang/Iterable;)V
    • getProtectionAmount

      public static int getProtectionAmount(Iterable<ItemStack> equipment, DamageSource source)
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Ljava/lang/Iterable;Lbqf;)I
      intermediary method_8219 Lnet/minecraft/class_1890;method_8219(Ljava/lang/Iterable;Lnet/minecraft/class_1282;)I
      named getProtectionAmount Lnet/minecraft/enchantment/EnchantmentHelper;getProtectionAmount(Ljava/lang/Iterable;Lnet/minecraft/entity/damage/DamageSource;)I
    • getAttackDamage

      public static float getAttackDamage(ItemStack stack, @Nullable @Nullable EntityType<?> entityType)
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Lcsz;Lbrn;)F
      intermediary method_8218 Lnet/minecraft/class_1890;method_8218(Lnet/minecraft/class_1799;Lnet/minecraft/class_1299;)F
      named getAttackDamage Lnet/minecraft/enchantment/EnchantmentHelper;getAttackDamage(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EntityType;)F
    • getSweepingMultiplier

      public static float getSweepingMultiplier(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Lbsa;)F
      intermediary method_8217 Lnet/minecraft/class_1890;method_8217(Lnet/minecraft/class_1309;)F
      named getSweepingMultiplier Lnet/minecraft/enchantment/EnchantmentHelper;getSweepingMultiplier(Lnet/minecraft/entity/LivingEntity;)F
    • onUserDamaged

      public static void onUserDamaged(LivingEntity user, Entity attacker)
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Lbsa;Lbrh;)V
      intermediary method_8210 Lnet/minecraft/class_1890;method_8210(Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;)V
      named onUserDamaged Lnet/minecraft/enchantment/EnchantmentHelper;onUserDamaged(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;)V
    • onTargetDamaged

      public static void onTargetDamaged(LivingEntity user, Entity target)
      Mappings:
      Namespace Name Mixin selector
      official b Lcyh;b(Lbsa;Lbrh;)V
      intermediary method_8213 Lnet/minecraft/class_1890;method_8213(Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;)V
      named onTargetDamaged Lnet/minecraft/enchantment/EnchantmentHelper;onTargetDamaged(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;)V
    • getEquipmentLevel

      public static int getEquipmentLevel(Enchantment enchantment, LivingEntity entity)
      Returns the highest level of the passed enchantment in the enchantment's applicable equipment slots' item stacks.
      Parameters:
      enchantment - the enchantment
      entity - the entity whose equipment slots are checked
      Returns:
      the highest level of the passed enchantment in the enchantment's applicable equipment slots' item stacks
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Lcyg;Lbsa;)I
      intermediary method_8203 Lnet/minecraft/class_1890;method_8203(Lnet/minecraft/class_1887;Lnet/minecraft/class_1309;)I
      named getEquipmentLevel Lnet/minecraft/enchantment/EnchantmentHelper;getEquipmentLevel(Lnet/minecraft/enchantment/Enchantment;Lnet/minecraft/entity/LivingEntity;)I
    • getSwiftSneakSpeedBoost

      public static float getSwiftSneakSpeedBoost(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lcyh;b(Lbsa;)F
      intermediary method_42304 Lnet/minecraft/class_1890;method_42304(Lnet/minecraft/class_1309;)F
      named getSwiftSneakSpeedBoost Lnet/minecraft/enchantment/EnchantmentHelper;getSwiftSneakSpeedBoost(Lnet/minecraft/entity/LivingEntity;)F
    • getKnockback

      public static int getKnockback(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official c Lcyh;c(Lbsa;)I
      intermediary method_8205 Lnet/minecraft/class_1890;method_8205(Lnet/minecraft/class_1309;)I
      named getKnockback Lnet/minecraft/enchantment/EnchantmentHelper;getKnockback(Lnet/minecraft/entity/LivingEntity;)I
    • getFireAspect

      public static int getFireAspect(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official d Lcyh;d(Lbsa;)I
      intermediary method_8199 Lnet/minecraft/class_1890;method_8199(Lnet/minecraft/class_1309;)I
      named getFireAspect Lnet/minecraft/enchantment/EnchantmentHelper;getFireAspect(Lnet/minecraft/entity/LivingEntity;)I
    • getRespiration

      public static int getRespiration(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official e Lcyh;e(Lbsa;)I
      intermediary method_8211 Lnet/minecraft/class_1890;method_8211(Lnet/minecraft/class_1309;)I
      named getRespiration Lnet/minecraft/enchantment/EnchantmentHelper;getRespiration(Lnet/minecraft/entity/LivingEntity;)I
    • getDepthStrider

      public static int getDepthStrider(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official f Lcyh;f(Lbsa;)I
      intermediary method_8232 Lnet/minecraft/class_1890;method_8232(Lnet/minecraft/class_1309;)I
      named getDepthStrider Lnet/minecraft/enchantment/EnchantmentHelper;getDepthStrider(Lnet/minecraft/entity/LivingEntity;)I
    • getEfficiency

      public static int getEfficiency(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official g Lcyh;g(Lbsa;)I
      intermediary method_8234 Lnet/minecraft/class_1890;method_8234(Lnet/minecraft/class_1309;)I
      named getEfficiency Lnet/minecraft/enchantment/EnchantmentHelper;getEfficiency(Lnet/minecraft/entity/LivingEntity;)I
    • getLuckOfTheSea

      public static int getLuckOfTheSea(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official d Lcyh;d(Lcsz;)I
      intermediary method_8223 Lnet/minecraft/class_1890;method_8223(Lnet/minecraft/class_1799;)I
      named getLuckOfTheSea Lnet/minecraft/enchantment/EnchantmentHelper;getLuckOfTheSea(Lnet/minecraft/item/ItemStack;)I
    • getLure

      public static int getLure(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official e Lcyh;e(Lcsz;)I
      intermediary method_8215 Lnet/minecraft/class_1890;method_8215(Lnet/minecraft/class_1799;)I
      named getLure Lnet/minecraft/enchantment/EnchantmentHelper;getLure(Lnet/minecraft/item/ItemStack;)I
    • getLooting

      public static int getLooting(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official h Lcyh;h(Lbsa;)I
      intermediary method_8226 Lnet/minecraft/class_1890;method_8226(Lnet/minecraft/class_1309;)I
      named getLooting Lnet/minecraft/enchantment/EnchantmentHelper;getLooting(Lnet/minecraft/entity/LivingEntity;)I
    • hasAquaAffinity

      public static boolean hasAquaAffinity(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official i Lcyh;i(Lbsa;)Z
      intermediary method_8200 Lnet/minecraft/class_1890;method_8200(Lnet/minecraft/class_1309;)Z
      named hasAquaAffinity Lnet/minecraft/enchantment/EnchantmentHelper;hasAquaAffinity(Lnet/minecraft/entity/LivingEntity;)Z
    • hasFrostWalker

      public static boolean hasFrostWalker(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official j Lcyh;j(Lbsa;)Z
      intermediary method_8216 Lnet/minecraft/class_1890;method_8216(Lnet/minecraft/class_1309;)Z
      named hasFrostWalker Lnet/minecraft/enchantment/EnchantmentHelper;hasFrostWalker(Lnet/minecraft/entity/LivingEntity;)Z
    • hasSoulSpeed

      public static boolean hasSoulSpeed(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official k Lcyh;k(Lbsa;)Z
      intermediary method_25951 Lnet/minecraft/class_1890;method_25951(Lnet/minecraft/class_1309;)Z
      named hasSoulSpeed Lnet/minecraft/enchantment/EnchantmentHelper;hasSoulSpeed(Lnet/minecraft/entity/LivingEntity;)Z
    • hasBindingCurse

      public static boolean hasBindingCurse(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official f Lcyh;f(Lcsz;)Z
      intermediary method_8224 Lnet/minecraft/class_1890;method_8224(Lnet/minecraft/class_1799;)Z
      named hasBindingCurse Lnet/minecraft/enchantment/EnchantmentHelper;hasBindingCurse(Lnet/minecraft/item/ItemStack;)Z
    • hasVanishingCurse

      public static boolean hasVanishingCurse(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official g Lcyh;g(Lcsz;)Z
      intermediary method_8221 Lnet/minecraft/class_1890;method_8221(Lnet/minecraft/class_1799;)Z
      named hasVanishingCurse Lnet/minecraft/enchantment/EnchantmentHelper;hasVanishingCurse(Lnet/minecraft/item/ItemStack;)Z
    • hasSilkTouch

      public static boolean hasSilkTouch(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official h Lcyh;h(Lcsz;)Z
      intermediary method_49189 Lnet/minecraft/class_1890;method_49189(Lnet/minecraft/class_1799;)Z
      named hasSilkTouch Lnet/minecraft/enchantment/EnchantmentHelper;hasSilkTouch(Lnet/minecraft/item/ItemStack;)Z
    • getLoyalty

      public static int getLoyalty(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official i Lcyh;i(Lcsz;)I
      intermediary method_8206 Lnet/minecraft/class_1890;method_8206(Lnet/minecraft/class_1799;)I
      named getLoyalty Lnet/minecraft/enchantment/EnchantmentHelper;getLoyalty(Lnet/minecraft/item/ItemStack;)I
    • getRiptide

      public static int getRiptide(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official j Lcyh;j(Lcsz;)I
      intermediary method_8202 Lnet/minecraft/class_1890;method_8202(Lnet/minecraft/class_1799;)I
      named getRiptide Lnet/minecraft/enchantment/EnchantmentHelper;getRiptide(Lnet/minecraft/item/ItemStack;)I
    • hasChanneling

      public static boolean hasChanneling(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official k Lcyh;k(Lcsz;)Z
      intermediary method_8228 Lnet/minecraft/class_1890;method_8228(Lnet/minecraft/class_1799;)Z
      named hasChanneling Lnet/minecraft/enchantment/EnchantmentHelper;hasChanneling(Lnet/minecraft/item/ItemStack;)Z
    • chooseEquipmentWith

      @Nullable public static Map.Entry<EquipmentSlot,ItemStack> chooseEquipmentWith(Enchantment enchantment, LivingEntity entity)
      Returns a pair of an equipment slot and the item stack in the supplied entity's slot. It indicates the item stack has the enchantment supplied.

      If multiple equipment slots' item stacks are valid, a random pair is returned.

      Parameters:
      enchantment - the enchantment the equipped item stack must have
      entity - the entity to choose equipments from
      Returns:
      a pair of an equipment slot and the item stack in the supplied entity's slot
      Mappings:
      Namespace Name Mixin selector
      official b Lcyh;b(Lcyg;Lbsa;)Ljava/util/Map$Entry;
      intermediary method_8204 Lnet/minecraft/class_1890;method_8204(Lnet/minecraft/class_1887;Lnet/minecraft/class_1309;)Ljava/util/Map$Entry;
      named chooseEquipmentWith Lnet/minecraft/enchantment/EnchantmentHelper;chooseEquipmentWith(Lnet/minecraft/enchantment/Enchantment;Lnet/minecraft/entity/LivingEntity;)Ljava/util/Map$Entry;
    • chooseEquipmentWith

      @Nullable public static Map.Entry<EquipmentSlot,ItemStack> chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition)
      Returns a pair of an equipment slot and the item stack in the supplied entity's slot. It indicates the item stack has the enchantment supplied and fulfills the extra condition.

      If multiple equipment slots' item stacks are valid, a random pair is returned.

      Parameters:
      enchantment - the enchantment the equipped item stack must have
      entity - the entity to choose equipments from
      condition - extra conditions for the item stack to pass for selection
      Returns:
      a pair of an equipment slot and the item stack in the supplied entity's slot
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Lcyg;Lbsa;Ljava/util/function/Predicate;)Ljava/util/Map$Entry;
      intermediary method_24365 Lnet/minecraft/class_1890;method_24365(Lnet/minecraft/class_1887;Lnet/minecraft/class_1309;Ljava/util/function/Predicate;)Ljava/util/Map$Entry;
      named chooseEquipmentWith Lnet/minecraft/enchantment/EnchantmentHelper;chooseEquipmentWith(Lnet/minecraft/enchantment/Enchantment;Lnet/minecraft/entity/LivingEntity;Ljava/util/function/Predicate;)Ljava/util/Map$Entry;
    • calculateRequiredExperienceLevel

      public static int calculateRequiredExperienceLevel(Random random, int slotIndex, int bookshelfCount, ItemStack stack)
      Returns the required experience level for an enchanting option in the enchanting table's screen, or the enchantment screen.
      Parameters:
      random - the random, which guarantees consistent results with the same seed
      slotIndex - the index of the enchanting option
      bookshelfCount - the number of bookshelves
      stack - the item stack to enchant
      Returns:
      the required experience level for an enchanting option in the enchanting table's screen, or the enchantment screen
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Layg;IILcsz;)I
      intermediary method_8227 Lnet/minecraft/class_1890;method_8227(Lnet/minecraft/class_5819;IILnet/minecraft/class_1799;)I
      named calculateRequiredExperienceLevel Lnet/minecraft/enchantment/EnchantmentHelper;calculateRequiredExperienceLevel(Lnet/minecraft/util/math/random/Random;IILnet/minecraft/item/ItemStack;)I
    • enchant

      public static ItemStack enchant(Random random, ItemStack target, int level, boolean treasureAllowed)
      Enchants the target item stack and returns it.
      Parameters:
      target - the item stack to enchant
      level - the experience level
      treasureAllowed - whether treasure enchantments may appear
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Layg;Lcsz;IZ)Lcsz;
      intermediary method_8233 Lnet/minecraft/class_1890;method_8233(Lnet/minecraft/class_5819;Lnet/minecraft/class_1799;IZ)Lnet/minecraft/class_1799;
      named enchant Lnet/minecraft/enchantment/EnchantmentHelper;enchant(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/item/ItemStack;IZ)Lnet/minecraft/item/ItemStack;
    • generateEnchantments

      public static List<EnchantmentLevelEntry> generateEnchantments(Random random, ItemStack stack, int level, boolean treasureAllowed)
      Generate the enchantments for enchanting the stack.
      Mappings:
      Namespace Name Mixin selector
      official b Lcyh;b(Layg;Lcsz;IZ)Ljava/util/List;
      intermediary method_8230 Lnet/minecraft/class_1890;method_8230(Lnet/minecraft/class_5819;Lnet/minecraft/class_1799;IZ)Ljava/util/List;
      named generateEnchantments Lnet/minecraft/enchantment/EnchantmentHelper;generateEnchantments(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/item/ItemStack;IZ)Ljava/util/List;
    • removeConflicts

      public static void removeConflicts(List<EnchantmentLevelEntry> possibleEntries, EnchantmentLevelEntry pickedEntry)
      Remove entries conflicting with the picked entry from the possible entries.
      Parameters:
      possibleEntries - the possible entries
      pickedEntry - the picked entry
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Ljava/util/List;Lcyi;)V
      intermediary method_8231 Lnet/minecraft/class_1890;method_8231(Ljava/util/List;Lnet/minecraft/class_1889;)V
      named removeConflicts Lnet/minecraft/enchantment/EnchantmentHelper;removeConflicts(Ljava/util/List;Lnet/minecraft/enchantment/EnchantmentLevelEntry;)V
    • isCompatible

      public static boolean isCompatible(Collection<RegistryEntry<Enchantment>> existing, Enchantment candidate)
      Returns whether the candidate enchantment is compatible with the existing enchantments.
      Returns:
      whether the candidate enchantment is compatible with the existing enchantments
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Ljava/util/Collection;Lcyg;)Z
      intermediary method_8201 Lnet/minecraft/class_1890;method_8201(Ljava/util/Collection;Lnet/minecraft/class_1887;)Z
      named isCompatible Lnet/minecraft/enchantment/EnchantmentHelper;isCompatible(Ljava/util/Collection;Lnet/minecraft/enchantment/Enchantment;)Z
    • getPossibleEntries

      public static List<EnchantmentLevelEntry> getPossibleEntries(int power, ItemStack stack, boolean treasureAllowed)
      Gets all the possible entries for enchanting the stack at the given power.
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(ILcsz;Z)Ljava/util/List;
      intermediary method_8229 Lnet/minecraft/class_1890;method_8229(ILnet/minecraft/class_1799;Z)Ljava/util/List;
      named getPossibleEntries Lnet/minecraft/enchantment/EnchantmentHelper;getPossibleEntries(ILnet/minecraft/item/ItemStack;Z)Ljava/util/List;