Skip to content

Expand PotionMeta Api to allow getting effective potion colour and effects#12390

Merged
lynxplay merged 6 commits into
PaperMC:mainfrom
456dev:feat/potion-effective-colour
May 2, 2025
Merged

Expand PotionMeta Api to allow getting effective potion colour and effects#12390
lynxplay merged 6 commits into
PaperMC:mainfrom
456dev:feat/potion-effective-colour

Conversation

@456dev
Copy link
Copy Markdown
Contributor

@456dev 456dev commented Apr 7, 2025

No description provided.

@456dev 456dev requested a review from a team as a code owner April 7, 2025 04:28
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Apr 7, 2025
Comment thread paper-api/src/main/java/org/bukkit/inventory/meta/PotionMeta.java Outdated
@456dev 456dev requested a review from kennytv April 14, 2025 18:40
@github-project-automation github-project-automation Bot moved this from Awaiting review to Awaiting final testing in Paper PR Queue Apr 22, 2025
* @return the visible colour
*/
@Contract(pure = true)
Color resultingColor();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any reason for this to not be named the same as "effective colour" in the PotionMeta?

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.

I don't believe so.
I think it came from PotionMeta having just getColor vs the data component having them as customColor, where there might be some confusion.

but one or the other is fine

@lynxplay lynxplay force-pushed the feat/potion-effective-colour branch from 027af76 to 895fcfd Compare April 25, 2025 18:20
@lynxplay lynxplay force-pushed the feat/potion-effective-colour branch from 895fcfd to 561df2d Compare May 2, 2025 19:39
@lynxplay lynxplay merged commit 2bd84f6 into PaperMC:main May 2, 2025
3 checks passed
@github-project-automation github-project-automation Bot moved this from Awaiting final testing to Merged in Paper PR Queue May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

4 participants