KyoriPowered / adventure

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

Colour with transparency #987

Open kezz opened 8 months ago

kezz commented 8 months 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 6 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?