Package net.neoforged.neoforge.event.enchanting
@NullMarked
package net.neoforged.neoforge.event.enchanting
-
ClassesClassDescriptionFired on the server when a block's loot table queries the level of an enchantment to determine what the block will drop.Fired on the server when an entity is dropping loot and the level of a specific enchantment is being queried.Fired when the enchantment level is set for each of the three potential enchantments in the enchanting table.This event is fired whenever the enchantment level of a particular item is requested for gameplay purposes.
It is called fromItemInstanceExtension.getEnchantmentLevel(Holder)andIItemStackExtension.getAllEnchantments(RegistryLookup).