()
| 122 | } |
| 123 | |
| 124 | private void render() { |
| 125 | if ((this.mc == null) || (this.timeStarted == 0L)) { |
| 126 | return; |
| 127 | } |
| 128 | double delta = (MinecraftFactory.getVars().getSystemTime() - this.timeStarted) / 3000.0D; |
| 129 | if (delta < 0.0D || delta > 1.0D) { |
| 130 | this.timeStarted = 0L; |
| 131 | activeOverlays[index] = null; |
| 132 | return; |
| 133 | } |
| 134 | |
| 135 | updateScale(); |
| 136 | |
| 137 | GLUtil.disableDepth(); |
| 138 | GLUtil.depthMask(false); |
| 139 | |
| 140 | delta *= 2.0D; |
| 141 | if (delta > 1.0D) { |
| 142 | delta = 2.0D - delta; |
| 143 | } |
| 144 | delta *= 4.0D; |
| 145 | delta = 1.0D - delta; |
| 146 | if (delta < 0.0D) { |
| 147 | delta = 0.0D; |
| 148 | } |
| 149 | delta = Math.pow(delta, 3); |
| 150 | |
| 151 | int x = width - 160; |
| 152 | int y = offset - (int) (delta * 32.0D); |
| 153 | GLUtil.color(1.0F, 1.0F, 1.0F, 1.0F); |
| 154 | cjm.w(); |
| 155 | MinecraftFactory.getVars().bindTexture(texture); |
| 156 | cjm.f(); |
| 157 | |
| 158 | b(x, y, 96, 202, 160, 32); // drawTexturedModalRect |
| 159 | if (this.title != null) { |
| 160 | MinecraftFactory.getVars().drawString(this.title, x + 5, y + 7, -256); |
| 161 | } |
| 162 | if (this.subtitle != null) { |
| 163 | MinecraftFactory.getVars().drawString(this.subtitle, x + 5, y + 18, -1); |
| 164 | } |
| 165 | bss.c(); |
| 166 | cjm.f(); |
| 167 | cjm.B(); |
| 168 | cjm.g(); |
| 169 | |
| 170 | cjm.e(); |
| 171 | cjm.f(); |
| 172 | |
| 173 | GLUtil.depthMask(true); |
| 174 | GLUtil.enableDepth(); |
| 175 | } |
| 176 | |
| 177 | public void b() { |
| 178 | this.timeStarted = 0L; |
no test coverage detected