KyoriPowered / adventure

A user-interface library, formerly known as text, for Minecraft: Java Edition
https://docs.advntr.dev/
MIT License
713 stars 107 forks source link

Colour with transparency #987

Open kezz opened 1 year ago

kezz commented 1 year ago

With the new text display entities comes an obvious good use case to stick components everywhere to make stuff pretty. However, I can't use adventure in the entire creation of a display entity because we do not have a colour object/interface/etc. that has transparency.

zml2008 commented 11 months ago

We specifically filter out alpha on TextColor -- otherwise you can get components with differing colours that are visually identical. I think RGBLike would mostly fulfill the role of "interface allowing colour with alpha". Would it be sufficient to do a pass over the API to make sure RGBLike is accepted in more places?