Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add effective name to ItemStack #11770

Merged
merged 5 commits into from
Dec 25, 2024
Merged

Conversation

masmc05
Copy link
Contributor

@masmc05 masmc05 commented Dec 22, 2024

Original #11469

Adds a new method which returns the name of an itemstack which the player sees in their inventory. Takes into account any data components exactly as vanilla.

Unlike ItemStack#displayName, does not add additional brackets etc

@masmc05 masmc05 requested a review from a team as a code owner December 22, 2024 22:25
@kennytv kennytv added the type: feature Request for a new Feature. label Dec 23, 2024
@MiniDigger MiniDigger changed the title Add effective name Add effective name to ItemStack Dec 23, 2024
Dead from pleasure of doing this
@kennytv kennytv merged commit a07cec1 into PaperMC:main Dec 25, 2024
3 checks passed
@masmc05 masmc05 deleted the add-effectiveName branch December 26, 2024 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Request for a new Feature.
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

4 participants