Skip to content

Conversation

Absolutionism
Copy link

@Absolutionism Absolutionism commented Aug 30, 2025

This PR aims to update Component classes, that have a Builder sub-class, by extending BuildableDataComponent, allowing users to retrieve a builder object with the same data from the component object.
Additionally, adds setters for some builders, allowing to completely set data rather than just adding. In tandom with #toBuilder allowing all other data to be kept without the need to recreate and setting each data 1 by 1.
#13041

@Absolutionism Absolutionism requested a review from a team as a code owner August 30, 2025 16:26
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Aug 30, 2025
Copy link
Contributor

@Doc94 Doc94 left a comment

Choose a reason for hiding this comment

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

Hi, i think this need a few changes mostly for the unnecesary gradle thing and also names for the set, you can check #12938 for reference.

Also im not sure about all the set methods maybe in a few places can be like Enchantments where a static builder exists for that like

static ItemEnchantments itemEnchantments(final Map<Enchantment, @IntRange(from = 1, to = 255) Integer> enchantments) {

@github-project-automation github-project-automation bot moved this from Awaiting review to Changes required in Paper PR Queue Aug 30, 2025
@Absolutionism Absolutionism requested a review from Doc94 August 30, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Changes required
Development

Successfully merging this pull request may close these issues.

3 participants