getTooltip

abstract void getTooltip(ItemStack stack, TooltipContext context, List<Text> lines)

Called when an item stack's tooltip is rendered. Text added to {@code lines} will berendered with the tooltip.

Parameters

lines

the list containing the lines of text displayed on the stack's tooltip

Sources

jvm source
Link copied to clipboard