enhance entity rendering: add support for villager levels, horse armor, llama decor, and saddle/chest states

This commit is contained in:
MineTec committed 2026-06-21 15:32:53 +02:00
1 parent 094aa463c5
commit 5330948dbd
7 files changed
+170 -11

No files matched your search

@@ -21,6 +21,9 @@ public final class MapColorPalette {
private MapColorPalette() {}
// MapPalette.getColor(byte) is deprecated for removal with no replacement for enumerating the
// index->colour palette; suppress until the API offers an alternative.
@SuppressWarnings("removal")
private static synchronized void ensure() {
if (initialized) return;
List<Byte> idx = new ArrayList<>();
@@ -33,7 +36,7 @@ public final class MapColorPalette {
} catch (Throwable t) {
continue;
}
if (c == null || c.getAlpha() < 255) continue; // skip transparent slots
if (c.getAlpha() < 255) continue; // skip transparent slots
idx.add((byte) i);
rgbs.add((c.getRed() << 16) | (c.getGreen() << 8) | c.getBlue());
labs.add(rgbToLab(c.getRed(), c.getGreen(), c.getBlue()));