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

Method getXpOrbColor

src/main/java/net/optifine/CustomColors.java:1107–1119  ·  view source on GitHub ↗
(float timer)

Source from the content-addressed store, hash-verified

1105 }
1106
1107 public static int getXpOrbColor(float timer)
1108 {
1109 if (xpOrbColors == null)
1110 {
1111 return -1;
1112 }
1113 else
1114 {
1115 int i = (int)Math.round((double)((MathHelper.sin(timer) + 1.0F) * (float)(xpOrbColors.getLength() - 1)) / 2.0D);
1116 int j = xpOrbColors.getColor(i);
1117 return j;
1118 }
1119 }
1120
1121 public static int getDurabilityColor(int dur255)
1122 {

Callers 1

doRenderMethod · 0.95

Calls 4

sinMethod · 0.95
roundMethod · 0.80
getLengthMethod · 0.80
getColorMethod · 0.65

Tested by

no test coverage detected