Fix CatalogTypes#1777
Closed
ImMorpheus wants to merge 4 commits into
Closed
Conversation
ST-DDT
approved these changes
Jul 2, 2018
3494786 to
dd498d3
Compare
dd498d3 to
296708e
Compare
296708e to
1ea562e
Compare
1ea562e to
2ed636d
Compare
ST-DDT
reviewed
Aug 22, 2018
| return ItemStack.of(this, 1).createSnapshot(); | ||
| } | ||
|
|
||
| Translation getTranslation(ItemStack stack); |
Member
There was a problem hiding this comment.
Isn't there already ItemStack#getTranslation?
Contributor
Author
There was a problem hiding this comment.
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.
66ffb47 to
43c7938
Compare
43c7938 to
d4c2680
Compare
Member
|
Note: This PR was automatically closed because the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SpongeAPI | SpongeCommon