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 p_345264_, ItemStack p_39472_, int p_39473_, int p_39474_) -
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 p_41162_) -
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 p_44818_, ItemStack p_44819_, Stream<Holder<Enchantment>> p_345348_) static List
<EnchantmentInstance> EnchantmentHelper.selectEnchantment
(RandomSource p_220298_, ItemStack p_220299_, int p_220300_, Stream<Holder<Enchantment>> p_346061_) Methods in net.minecraft.world.item.enchantment with parameters of type EnchantmentInstanceModifier and TypeMethodDescriptionstatic void
EnchantmentHelper.filterCompatibleEnchantments
(List<EnchantmentInstance> p_44863_, EnchantmentInstance p_44864_) Method parameters in net.minecraft.world.item.enchantment with type arguments of type EnchantmentInstanceModifier and TypeMethodDescriptionstatic void
EnchantmentHelper.filterCompatibleEnchantments
(List<EnchantmentInstance> p_44863_, EnchantmentInstance p_44864_) -
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. -
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)