MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / setMapColors

Method setMapColors

src/main/java/net/optifine/CustomColors.java:1733–1761  ·  view source on GitHub ↗
(int[] colors)

Source from the content-addressed store, hash-verified

1731 }
1732
1733 private static void setMapColors(int[] colors)
1734 {
1735 if (colors != null)
1736 {
1737 MapColor[] amapcolor = MapColor.mapColorArray;
1738 boolean flag = false;
1739
1740 for (int i = 0; i < amapcolor.length && i < colors.length; ++i)
1741 {
1742 MapColor mapcolor = amapcolor[i];
1743
1744 if (mapcolor != null)
1745 {
1746 int j = colors[i];
1747
1748 if (j >= 0 && mapcolor.colorValue != j)
1749 {
1750 mapcolor.colorValue = j;
1751 flag = true;
1752 }
1753 }
1754 }
1755
1756 if (flag)
1757 {
1758 Minecraft.getMinecraft().getTextureManager().reloadBannerTextures();
1759 }
1760 }
1761 }
1762
1763 private static void dbg(String str)
1764 {

Callers 2

updateMethod · 0.95
readColorPropertiesMethod · 0.95

Calls 3

getMinecraftMethod · 0.95
reloadBannerTexturesMethod · 0.80
getTextureManagerMethod · 0.45

Tested by

no test coverage detected