mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-10 01:10:30 +00:00
ba36c69583
Previously we used an RGBA byte array. However, this comes with some overhead (extra memory reads, bounds checks). Minecraft 1.21+ uses ARGB32 colours for rendering (well, in the public code — internaly it converts to ABGR), so it makes sense to match that here. We also add some helper functions for dealing with ARGB32 colours. These can be removed in 1.21, as Minecraft will have these builtin. |
||
---|---|---|
.. | ||
src | ||
build.gradle.kts |