Class GetEnchantmentLevelEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.enchanting.GetEnchantmentLevelEvent

public class GetEnchantmentLevelEvent extends net.neoforged.bus.api.Event
This event is fired whenever the enchantment level of a particular item is requested for gameplay purposes.
It is called from ItemInstanceExtension.getEnchantmentLevel(Holder) and IItemStackExtension.getAllEnchantments(RegistryLookup).

It is not fired for interactions with NBT, which means these changes will not reflect in the item tooltip.