[SPIGOT-7292] Text Display background color - alpha option? Created: 14/Mar/23  Updated: 25/Dec/24  Resolved: 16/Mar/23

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Shane Bee Assignee: Doc
Resolution: Fixed Votes: 0
Labels: None

Version: n/a
Guidelines Read: Yes

 Description   

I was recently looking thru the API and noticed the setBackgroundColor(Color color) of TextDisplay entity uses Bukkit's color class, which does not have an option for the Alpha channel.

As per McWiki for Text Display entities:

""

  •  background: The background color, arranged by ARGB. Since pixel with an alpha channel less than 0.1 are discarded when rendering in vanilla shader, the background becomes fully transparent when A is less than 26 (0x1A). Defaults to 1073741824 (0x40000000). Interpolated.

""

I would love to see something here get added, as Im sure many people will find the transparency for these to be quite useful.

 

Thank you for reading!



 Comments   
Comment by Shane Bee [ 16/Mar/23 ]

thanks for this fix.

I did want to make a note that Display#getGlowColorOverride(), Display#setGlowColorOverride(Color color), TextDisplay#getBackgroundColor() and TextDisplay#setBackgroundColor(Color color) are all still marked as deprecated!

I didn't want to create a new issue for that so figured I'd bring it up here

Comment by Doc [ 15/Mar/23 ]

Created PR.

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/pull-requests/820/overview

Generated at Sat Dec 13 15:20:02 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.