Skip to content

adventure: make calls with generic component lists more usable#9008

Merged
kennytv merged 1 commit intoPaperMC:masterfrom
Joo200:feat/lore-generics-friendly
Mar 20, 2023
Merged

adventure: make calls with generic component lists more usable#9008
kennytv merged 1 commit intoPaperMC:masterfrom
Joo200:feat/lore-generics-friendly

Conversation

@Joo200
Copy link
Copy Markdown
Contributor

@Joo200 Joo200 commented Mar 19, 2023

This should allow the usage of methods with a List parameter like ItemStack#lore with a List.
Sometimes API methods will return TextComponents so you'd have to parse to get List.

This api change is backwards compatible unless plugins are implementing Player, ItemStack and ItemMeta.

This should allow the usage of ItemStack#lore and other methods with a List<TextComponent>
@Joo200 Joo200 requested a review from a team as a code owner March 19, 2023 22:12
@kennytv kennytv merged commit ff603cb into PaperMC:master Mar 20, 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.

3 participants