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 registryAccess, ItemStack stack, int slot, int cost) -
Uses of EnchantmentInstance in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type EnchantmentInstanceModifier and TypeMethodDescriptionstatic ItemStackEnchantedBookItem.createForEnchantment(EnchantmentInstance instance) 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 level, ItemStack stack, Stream<Holder<Enchantment>> possibleEnchantments) static List<EnchantmentInstance> EnchantmentHelper.selectEnchantment(RandomSource random, ItemStack stack, int level, Stream<Holder<Enchantment>> possibleEnchantments) Methods in net.minecraft.world.item.enchantment with parameters of type EnchantmentInstanceModifier and TypeMethodDescriptionstatic voidEnchantmentHelper.filterCompatibleEnchantments(List<EnchantmentInstance> dataList, EnchantmentInstance data) Method parameters in net.minecraft.world.item.enchantment with type arguments of type EnchantmentInstanceModifier and TypeMethodDescriptionstatic voidEnchantmentHelper.filterCompatibleEnchantments(List<EnchantmentInstance> dataList, EnchantmentInstance data) -
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. -
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)