Skip to content

Add hover lines API#1440

Merged
granny merged 2 commits into
PurpurMC:ver/1.20.2from
MelnCat:feat/hover-lines-api
Oct 4, 2023
Merged

Add hover lines API#1440
granny merged 2 commits into
PurpurMC:ver/1.20.2from
MelnCat:feat/hover-lines-api

Conversation

@MelnCat

@MelnCat MelnCat commented Oct 3, 2023

Copy link
Copy Markdown
Contributor

This pull request adds a method on ItemStack to get the hover lines. This is the text shown when hovering over the item, which includes the item name, enchantments, and other information shown on hover. There is also an argument for showing the advanced tooltips, which functions like viewing the item on a client with F3 + H on.

@granny granny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one change, otherwise lgtm

Comment thread patches/server/0304-Add-hover-lines-API.patch Outdated
@granny granny merged commit c5eadcc into PurpurMC:ver/1.20.2 Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants