Class ItemTooltipEvents

java.lang.Object
net.ixdarklord.coolcatcore.api.event.v2.client.ItemTooltipEvents

public final class ItemTooltipEvents extends Object
Item tooltips.
  • MODIFY: the tooltip as the loader's tooltip event builds it, to add to or change anywhere. Its phases reach other mods' own tooltip listeners: EventPhase.FIRST runs before them, EventPhase.LAST after them (NeoForge's highest and lowest priorities, Fabric phases before and after the default one).
  • APPEND: lines added at the very end, once every loader event and every other mod has had its say, so they close the tooltip: a mod's own section that should never land among others' lines. With advanced tooltips on, the game's advanced lines (durability, the item's id, its component count) stay under them.
  • Field Details

    • MODIFY

      public static final EventInvoker<ItemTooltipEvents.Modify> MODIFY
    • APPEND

      public static final EventInvoker<ItemTooltipEvents.Append> APPEND
      Fired when ItemStack.getTooltipLines(net.minecraft.world.item.Item.TooltipContext, net.minecraft.world.entity.player.Player, net.minecraft.world.item.TooltipFlag) returns, after the loaders' tooltip events: its lines end the tooltip. Not fired for an item that hides its tooltip.