Uses of 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
Methods in net.minecraft.world.item with parameters of type EnchantmentInstanceModifier and TypeMethodDescriptionstatic ItemStack
EnchantedBookItem.createForEnchantment
(EnchantmentInstance pInstance) Returns the ItemStack of an enchanted version of this item. -
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 void
EnchantmentHelper.filterCompatibleEnchantments
(List<EnchantmentInstance> pDataList, EnchantmentInstance pData) Method parameters in net.minecraft.world.item.enchantment with type arguments of type EnchantmentInstanceModifier and TypeMethodDescriptionstatic void
EnchantmentHelper.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 void
CommonHooks.onPlayerEnchantItem
(Player player, ItemStack stack, List<EnchantmentInstance> instances) FiresPlayerEnchantItemEvent
inEnchantmentMenu.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 ItemStack
IItemExtension.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.enchantments
Methods 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)