Skip to content

Conversation

@AmauryCarrade
Copy link
Member

@AmauryCarrade AmauryCarrade commented Nov 25, 2020

e.g.

Assertions.assertEquals(ItemUtils.colorize(ColorableMaterial.BED, DyeColor.LIME), Material.LIME_BED);

I'm not sure about the enum name and the external or internal state of it. Also we should add tests, I'm not sure how many. Done.

This PR depends on #62 and was based on its branch so we can test this (that's why we can see its commits here). Tests not passing are normal, they're the ones from #62. #62 is merged and the PR was rebased.

@AmauryCarrade AmauryCarrade added B ⋅ Waiting for another PR Blocked – Waiting for another PR to be merged C ⋅ Tools Component – Uncategorized tools T ⋅ Feature Type – Feature Request labels Nov 25, 2020
@AmauryCarrade AmauryCarrade added this to the v0.0.2 milestone Nov 26, 2020
@AmauryCarrade AmauryCarrade removed the B ⋅ Waiting for another PR Blocked – Waiting for another PR to be merged label Nov 26, 2020
@AmauryCarrade AmauryCarrade force-pushed the quartzlib-est-désormais-une-artiste---elle-a-découvert-la-peinture-et-elle-aime-ça branch from 5ed13e8 to 0edd5d2 Compare November 26, 2020 13:20
As we don't have any way to get a colorized version from a color and a base
material (like, get Material.BLUE_BED from BED and BLUE, both of them being
dynamic), here are methods to do so.
- Added tests
- Added checkstyle config to allow to suppress warning through annotation
@AmauryCarrade AmauryCarrade force-pushed the quartzlib-est-désormais-une-artiste---elle-a-découvert-la-peinture-et-elle-aime-ça branch from 0edd5d2 to 3ba85ed Compare November 26, 2020 13:23
@AmauryCarrade
Copy link
Member Author

Ready for review.

Copy link
Member

@prokopyl prokopyl left a comment

Choose a reason for hiding this comment

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

Only one minor suggestion, otherwise lgtm 👍

@prokopyl prokopyl merged commit a8fc563 into master Nov 26, 2020
@prokopyl prokopyl deleted the quartzlib-est-désormais-une-artiste---elle-a-découvert-la-peinture-et-elle-aime-ça branch November 26, 2020 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C ⋅ Tools Component – Uncategorized tools T ⋅ Feature Type – Feature Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants