Skip to main content
Discovery icon for PaperMC Discord server

PaperMC

17,523 Online
55,097 Members
# paper-dev5 people

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
Summarized from recent messages, might be inaccurate

More conversations

Talk, Play, &
Hang Out

Find your space to hang out, discuss the latest updates with the party chat, and see who's down to join your next match.
Get App