Skip to content

Fix CatalogTypes#1777

Closed
ImMorpheus wants to merge 4 commits into
SpongePowered:1.13from
ImMorpheus:fix/catalogtypes
Closed

Fix CatalogTypes#1777
ImMorpheus wants to merge 4 commits into
SpongePowered:1.13from
ImMorpheus:fix/catalogtypes

Conversation

@ImMorpheus
Copy link
Copy Markdown
Contributor

@ImMorpheus ImMorpheus commented Feb 10, 2018

SpongeAPI | SpongeCommon

@ImMorpheus ImMorpheus force-pushed the fix/catalogtypes branch 2 times, most recently from 3494786 to dd498d3 Compare July 18, 2018 21:48
return ItemStack.of(this, 1).createSnapshot();
}

Translation getTranslation(ItemStack stack);
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.

Isn't there already ItemStack#getTranslation?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. This is used by ItemStack#getTranslation to take advantage of polymorphism since you need the ItemType to translate the ItemStack.

See Item#getTranslationKey(ItemStack stack) in minecraft code for a similar approach.

@gabizou gabizou added branch: bleeding api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) and removed api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) labels Aug 30, 2018
@ImMorpheus ImMorpheus changed the base branch from bleeding to 1.13 February 2, 2019 16:00
@ImMorpheus ImMorpheus added api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) and removed branch: bleeding labels Feb 2, 2019
@JBYoshi
Copy link
Copy Markdown
Member

JBYoshi commented Oct 9, 2019

Note: This PR was automatically closed because the 1.13 branch was deleted. It will need to be reopened to target api-8 instead. See #1428 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) status: needs review status: needs testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants