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 TypeMethodDescriptionboolean
EnchantmentPredicate.containedIn
(ItemEnchantments p_330878_) boolean
ItemEnchantmentsPredicate.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.ENCHANTMENTS
static 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.CODEC
private static final com.mojang.serialization.Codec
<ItemEnchantments> ItemEnchantments.FULL_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, ItemEnchantments> ItemEnchantments.STREAM_CODEC
Methods in net.minecraft.world.item.enchantment that return ItemEnchantmentsModifier and TypeMethodDescriptionstatic ItemEnchantments
EnchantmentHelper.getEnchantmentsForCrafting
(ItemStack p_330538_) ItemEnchantments.Mutable.toImmutable()
static ItemEnchantments
EnchantmentHelper.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 void
EnchantmentHelper.doPostItemStackHurtEffects
(LivingEntity p_338188_, Entity p_338394_, ItemEnchantments p_338474_) static void
EnchantmentHelper.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 ItemEnchantments
IItemExtension.getAllEnchantments
(ItemStack stack) Gets a map of all enchantments present on the stack.default ItemEnchantments
IItemStackExtension.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 ItemEnchantments
EventHooks.getEnchantmentLevel
(ItemEnchantments enchantments, ItemStack stack) FiresGetEnchantmentLevelEvent
and for all enchantments, returning the (possibly event-modified) enchantment map.Methods in net.neoforged.neoforge.event with parameters of type ItemEnchantmentsModifier and TypeMethodDescriptionstatic ItemEnchantments
EventHooks.getEnchantmentLevel
(ItemEnchantments enchantments, ItemStack stack) FiresGetEnchantmentLevelEvent
and for all enchantments, returning the (possibly event-modified) enchantment map.