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_) -
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 ItemEnchantments -
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.doPostItemStackHurtEffects(LivingEntity p_338188_, Entity p_338394_, ItemEnchantments p_338474_) static 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) Gets a map of all enchantments present on the stack.default ItemEnchantmentsIItemStackExtension.getAllEnchantments()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.getEnchantmentLevel(ItemEnchantments enchantments, ItemStack stack) 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.getEnchantmentLevel(ItemEnchantments enchantments, ItemStack stack) FiresGetEnchantmentLevelEventand for all enchantments, returning the (possibly event-modified) enchantment map.