Uses of Class
net.minecraft.world.item.enchantment.ItemEnchantments
Packages that use ItemEnchantments
Package
Description
-
Uses of ItemEnchantments in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon that return types with arguments of type ItemEnchantmentsModifier and TypeMethodDescriptionItemEnchantmentsPredicate.Enchantments.componentType()ItemEnchantmentsPredicate.StoredEnchantments.componentType()Methods in net.minecraft.advancements.critereon with parameters of type ItemEnchantmentsModifier and TypeMethodDescriptionbooleanEnchantmentPredicate.containedIn(ItemEnchantments p_330878_) booleanItemEnchantmentsPredicate.matches(ItemStack p_333811_, ItemEnchantments p_334059_) private booleanEnchantmentPredicate.matchesEnchantment(ItemEnchantments p_346384_, Holder<Enchantment> p_345318_) -
Uses of ItemEnchantments in net.minecraft.core.component
Fields in net.minecraft.core.component with type parameters of type ItemEnchantmentsModifier and TypeFieldDescriptionstatic final DataComponentType<ItemEnchantments> DataComponents.ENCHANTMENTSstatic final DataComponentType<ItemEnchantments> DataComponents.STORED_ENCHANTMENTS -
Uses of ItemEnchantments in net.minecraft.world.item
Methods in net.minecraft.world.item that return ItemEnchantmentsModifier and TypeMethodDescriptionItemStack.getEnchantments()Deprecated.ItemStack.getTagEnchantments()Gets all enchantments from NBT. -
Uses of ItemEnchantments in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as ItemEnchantmentsFields in net.minecraft.world.item.enchantment with type parameters of type ItemEnchantmentsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ItemEnchantments> ItemEnchantments.CODECprivate static final com.mojang.serialization.Codec<ItemEnchantments> ItemEnchantments.FULL_CODECstatic final StreamCodec<RegistryFriendlyByteBuf, ItemEnchantments> ItemEnchantments.STREAM_CODECMethods in net.minecraft.world.item.enchantment that return ItemEnchantmentsModifier and TypeMethodDescriptionstatic ItemEnchantmentsEnchantmentHelper.getEnchantmentsForCrafting(ItemStack p_330538_) ItemEnchantments.Mutable.toImmutable()static ItemEnchantmentsEnchantmentHelper.updateEnchantments(ItemStack p_331034_, Consumer<ItemEnchantments.Mutable> p_332031_) ItemEnchantments.withTooltip(boolean p_335616_) Methods in net.minecraft.world.item.enchantment that return types with arguments of type ItemEnchantmentsModifier and TypeMethodDescriptionprivate static DataComponentType<ItemEnchantments> EnchantmentHelper.getComponentType(ItemStack p_331909_) Methods in net.minecraft.world.item.enchantment with parameters of type ItemEnchantmentsModifier and TypeMethodDescriptionstatic voidEnchantmentHelper.setEnchantments(ItemStack p_44867_, ItemEnchantments p_332148_) Constructors in net.minecraft.world.item.enchantment with parameters of type ItemEnchantments -
Uses of ItemEnchantments in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return ItemEnchantmentsModifier and TypeMethodDescriptiondefault ItemEnchantmentsIItemExtension.getAllEnchantments(ItemStack stack, HolderLookup.RegistryLookup<Enchantment> lookup) Gets a map of all enchantments present on the stack.default ItemEnchantmentsIItemStackExtension.getAllEnchantments(HolderLookup.RegistryLookup<Enchantment> lookup) Gets the gameplay level of all enchantments on this stack. -
Uses of ItemEnchantments in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event that return ItemEnchantmentsModifier and TypeMethodDescriptionstatic ItemEnchantmentsEventHooks.getAllEnchantmentLevels(ItemEnchantments enchantments, ItemStack stack, HolderLookup.RegistryLookup<Enchantment> lookup) FiresGetEnchantmentLevelEventand for all enchantments, returning the (possibly event-modified) enchantment map.Methods in net.neoforged.neoforge.event with parameters of type ItemEnchantmentsModifier and TypeMethodDescriptionstatic ItemEnchantmentsEventHooks.getAllEnchantmentLevels(ItemEnchantments enchantments, ItemStack stack, HolderLookup.RegistryLookup<Enchantment> lookup) FiresGetEnchantmentLevelEventand for all enchantments, returning the (possibly event-modified) enchantment map.
ItemStack.getTagEnchantments()for NBT enchantments, orIItemStackExtension.getAllEnchantments(net.minecraft.core.HolderLookup.RegistryLookup<net.minecraft.world.item.enchantment.Enchantment>)for gameplay.