(float timer)
| 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 | { |