Uses of Record Class
net.minecraft.world.item.enchantment.EnchantmentInstance
Packages that use EnchantmentInstance
Package
Description
-
Uses of EnchantmentInstance in net.minecraft.world.inventory
Methods in net.minecraft.world.inventory that return types with arguments of type EnchantmentInstanceModifier and TypeMethodDescriptionprivate List<EnchantmentInstance> EnchantmentMenu.getEnchantmentList(RegistryAccess pRegistryAccess, ItemStack pStack, int pSlot, int pCost) -
Uses of EnchantmentInstance in net.minecraft.world.item.enchantment
Methods in net.minecraft.world.item.enchantment that return types with arguments of type EnchantmentInstanceModifier and TypeMethodDescriptionstatic List<EnchantmentInstance> EnchantmentHelper.getAvailableEnchantmentResults(int pLevel, ItemStack pStack, Stream<Holder<Enchantment>> pPossibleEnchantments) static List<EnchantmentInstance> EnchantmentHelper.selectEnchantment(RandomSource pRandom, ItemStack pStack, int pLevel, Stream<Holder<Enchantment>> pPossibleEnchantments) Methods in net.minecraft.world.item.enchantment with parameters of type EnchantmentInstanceModifier and TypeMethodDescriptionstatic ItemStackEnchantmentHelper.createBook(EnchantmentInstance pEnchantmant) static voidEnchantmentHelper.filterCompatibleEnchantments(List<EnchantmentInstance> pDataList, EnchantmentInstance pData) Method parameters in net.minecraft.world.item.enchantment with type arguments of type EnchantmentInstanceModifier and TypeMethodDescriptionstatic voidEnchantmentHelper.filterCompatibleEnchantments(List<EnchantmentInstance> pDataList, EnchantmentInstance pData) -
Uses of EnchantmentInstance in net.neoforged.neoforge.common
Method parameters in net.neoforged.neoforge.common with type arguments of type EnchantmentInstanceModifier and TypeMethodDescriptionstatic voidCommonHooks.onPlayerEnchantItem(Player player, ItemStack stack, List<EnchantmentInstance> instances) FiresPlayerEnchantItemEventinEnchantmentMenu.clickMenuButton(Player, int)after the enchants are applied to the item. -
Uses of EnchantmentInstance in net.neoforged.neoforge.common.extensions
Method parameters in net.neoforged.neoforge.common.extensions with type arguments of type EnchantmentInstanceModifier and TypeMethodDescriptiondefault ItemStackIItemExtension.applyEnchantments(ItemStack stack, List<EnchantmentInstance> enchantments) Handles enchanting an item (i.e. in the enchanting table), potentially transforming it to a new item in the process. -
Uses of EnchantmentInstance in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player with type parameters of type EnchantmentInstanceModifier and TypeFieldDescriptionprivate final List<EnchantmentInstance> PlayerEnchantItemEvent.enchantmentsMethods in net.neoforged.neoforge.event.entity.player that return types with arguments of type EnchantmentInstanceConstructor parameters in net.neoforged.neoforge.event.entity.player with type arguments of type EnchantmentInstanceModifierConstructorDescriptionPlayerEnchantItemEvent(Player player, ItemStack enchantedItem, List<EnchantmentInstance> enchantments)