Uses of Class
net.minecraft.world.item.enchantment.ItemEnchantments.Mutable
Package
Description
-
Uses of ItemEnchantments.Mutable in net.minecraft.world.item.enchantment
Modifier and TypeMethodDescriptionstatic ItemEnchantments
EnchantmentHelper.updateEnchantments
(ItemStack p_331034_, Consumer<ItemEnchantments.Mutable> p_332031_) -
Uses of ItemEnchantments.Mutable in net.minecraft.world.item.enchantment.providers
Modifier and TypeMethodDescriptionvoid
EnchantmentProvider.enchant
(ItemStack p_345974_, ItemEnchantments.Mutable p_344824_, RandomSource p_346040_, DifficultyInstance p_348672_) void
EnchantmentsByCost.enchant
(ItemStack p_345483_, ItemEnchantments.Mutable p_346331_, RandomSource p_344794_, DifficultyInstance p_348577_) void
EnchantmentsByCostWithDifficulty.enchant
(ItemStack p_344777_, ItemEnchantments.Mutable p_344895_, RandomSource p_346012_, DifficultyInstance p_348635_) void
SingleEnchantment.enchant
(ItemStack p_346218_, ItemEnchantments.Mutable p_345570_, RandomSource p_345742_, DifficultyInstance p_348562_) -
Uses of ItemEnchantments.Mutable in net.neoforged.neoforge.event.enchanting
Modifier and TypeFieldDescriptionprotected final ItemEnchantments.Mutable
GetEnchantmentLevelEvent.enchantments
Modifier and TypeMethodDescriptionGetEnchantmentLevelEvent.getEnchantments()
Returns the mutable enchantment->level map.ModifierConstructorDescriptionGetEnchantmentLevelEvent
(ItemStack stack, ItemEnchantments.Mutable enchantments, @Nullable Holder<Enchantment> targetEnchant, HolderLookup.RegistryLookup<Enchantment> lookup)