Class ItemTooltipEvents
java.lang.Object
net.ixdarklord.coolcatcore.api.event.v2.client.ItemTooltipEvents
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.FIRSTruns before them,EventPhase.LASTafter them (Forge'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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe tooltip as it is about to be shown, every other line in place: what is added here comes last.static interfaceThe finished tooltip lines, name included, to add to or change. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventInvoker<ItemTooltipEvents.Append>Fired whenItemStack.getTooltipLines(net.minecraft.world.entity.player.Player, net.minecraft.world.item.TooltipFlag)returns, after the loaders' tooltip events: its lines end the tooltip.static final EventInvoker<ItemTooltipEvents.Modify> -
Method Summary
-
Field Details
-
MODIFY
-
APPEND
Fired whenItemStack.getTooltipLines(net.minecraft.world.entity.player.Player, net.minecraft.world.item.TooltipFlag)returns, after the loaders' tooltip events: its lines end the tooltip.
-