Rendering item tooltips server-side
Item tooltip lines can be generated server-side using ItemStack's computeTooltipLines method, or displayed via hover events.
- A developer asked how to generate client-like item tooltip components on the server for a shop interface
- For shop display text, attaching an ItemStack directly to a hover event lets the client handle rendering natively
- Paper provides ItemStack#computeTooltipLines with a TooltipContext and Player parameter to retrieve exact tooltip component lines


