protected void func_22015_a( EntityPlayer p_22015_1_, double p_22015_2_, double p_22015_4_, double p_22015_6_) { if (Minecraft.func_22006_t() && p_22015_1_ != this.field_191_a.field_22188_h) { float var8 = 1.6F; float var9 = 0.016666668F * var8; float var10 = p_22015_1_.func_379_d(this.field_191_a.field_22188_h); float var11 = p_22015_1_.func_381_o() ? 32.0F : 64.0F; if (var10 < var11) { String var12 = p_22015_1_.field_771_i; if (!p_22015_1_.func_381_o()) { if (p_22015_1_.func_22051_K()) { this.func_22013_a(p_22015_1_, var12, p_22015_2_, p_22015_4_ - 1.5D, p_22015_6_, 64); } else { this.func_22013_a(p_22015_1_, var12, p_22015_2_, p_22015_4_, p_22015_6_, 64); } } else { FontRenderer var13 = this.func_6329_a(); GL11.glPushMatrix(); GL11.glTranslatef( (float) p_22015_2_ + 0.0F, (float) p_22015_4_ + 2.3F, (float) p_22015_6_); GL11.glNormal3f(0.0F, 1.0F, 0.0F); GL11.glRotatef(-this.field_191_a.field_1225_i, 0.0F, 1.0F, 0.0F); GL11.glRotatef(this.field_191_a.field_1224_j, 1.0F, 0.0F, 0.0F); GL11.glScalef(-var9, -var9, var9); GL11.glDisable(2896); GL11.glTranslatef(0.0F, 0.25F / var9, 0.0F); GL11.glDepthMask(false); GL11.glEnable(3042); GL11.glBlendFunc(770, 771); Tessellator var14 = Tessellator.field_1512_a; GL11.glDisable(3553); var14.func_977_b(); int var15 = var13.func_871_a(var12) / 2; var14.func_986_a(0.0F, 0.0F, 0.0F, 0.25F); var14.func_991_a((double) (-var15 - 1), -1.0D, 0.0D); var14.func_991_a((double) (-var15 - 1), 8.0D, 0.0D); var14.func_991_a((double) (var15 + 1), 8.0D, 0.0D); var14.func_991_a((double) (var15 + 1), -1.0D, 0.0D); var14.func_982_a(); GL11.glEnable(3553); GL11.glDepthMask(true); var13.func_873_b(var12, -var13.func_871_a(var12) / 2, 0, 553648127); GL11.glEnable(2896); GL11.glDisable(3042); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); GL11.glPopMatrix(); } } } }
public void func_983_a( double p_983_1_, double p_983_3_, double p_983_5_, double p_983_7_, double p_983_9_) { func_981_a(p_983_7_, p_983_9_); func_991_a(p_983_1_, p_983_3_, p_983_5_); }
public void func_40446_a( TileEntityEndPortal tileentityendportal, double d, double d1, double d2, float f) { float f1 = (float) field_6509_a.field_1545_j; float f2 = (float) field_6509_a.field_1544_k; float f3 = (float) field_6509_a.field_1543_l; GL11.glDisable(2896); Random random = new Random(31100L); float f4 = 0.75F; for (int i = 0; i < 16; i++) { GL11.glPushMatrix(); float f5 = 16 - i; float f6 = 0.0625F; float f7 = 1.0F / (f5 + 1.0F); if (i == 0) { func_6507_a("/misc/tunnel.png"); f7 = 0.1F; f5 = 65F; f6 = 0.125F; GL11.glEnable(3042); GL11.glBlendFunc(770, 771); } if (i == 1) { func_6507_a("/misc/particlefield.png"); GL11.glEnable(3042); GL11.glBlendFunc(1, 1); f6 = 0.5F; } float f8 = (float) (-(d1 + (double) f4)); float f9 = f8 + ActiveRenderInfo.field_41072_b; float f10 = f8 + f5 + ActiveRenderInfo.field_41072_b; float f11 = f9 / f10; f11 = (float) (d1 + (double) f4) + f11; GL11.glTranslatef(f1, f11, f3); GL11.glTexGeni(8192, 9472, 9217); GL11.glTexGeni(8193, 9472, 9217); GL11.glTexGeni(8194, 9472, 9217); GL11.glTexGeni(8195, 9472, 9216); GL11.glTexGen(8192, 9473, func_40447_a(1.0F, 0.0F, 0.0F, 0.0F)); GL11.glTexGen(8193, 9473, func_40447_a(0.0F, 0.0F, 1.0F, 0.0F)); GL11.glTexGen(8194, 9473, func_40447_a(0.0F, 0.0F, 0.0F, 1.0F)); GL11.glTexGen(8195, 9474, func_40447_a(0.0F, 1.0F, 0.0F, 0.0F)); GL11.glEnable(3168); GL11.glEnable(3169); GL11.glEnable(3170); GL11.glEnable(3171); GL11.glPopMatrix(); GL11.glMatrixMode(5890); GL11.glPushMatrix(); GL11.glLoadIdentity(); GL11.glTranslatef(0.0F, (float) (System.currentTimeMillis() % 0xaae60L) / 700000F, 0.0F); GL11.glScalef(f6, f6, f6); GL11.glTranslatef(0.5F, 0.5F, 0.0F); GL11.glRotatef((float) (i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F); GL11.glTranslatef(-0.5F, -0.5F, 0.0F); GL11.glTranslatef(-f1, -f3, -f2); f9 = f8 + ActiveRenderInfo.field_41072_b; GL11.glTranslatef( (ActiveRenderInfo.field_41074_a * f5) / f9, (ActiveRenderInfo.field_41073_c * f5) / f9, -f2); Tessellator tessellator = Tessellator.field_1512_a; tessellator.func_977_b(); f11 = random.nextFloat() * 0.5F + 0.1F; float f12 = random.nextFloat() * 0.5F + 0.4F; float f13 = random.nextFloat() * 0.5F + 0.5F; if (i == 0) { f11 = f12 = f13 = 1.0F; } tessellator.func_986_a(f11 * f7, f12 * f7, f13 * f7, 1.0F); tessellator.func_991_a(d, d1 + (double) f4, d2); tessellator.func_991_a(d, d1 + (double) f4, d2 + 1.0D); tessellator.func_991_a(d + 1.0D, d1 + (double) f4, d2 + 1.0D); tessellator.func_991_a(d + 1.0D, d1 + (double) f4, d2); tessellator.func_982_a(); GL11.glPopMatrix(); GL11.glMatrixMode(5888); } GL11.glDisable(3042); GL11.glDisable(3168); GL11.glDisable(3169); GL11.glDisable(3170); GL11.glDisable(3171); GL11.glEnable(2896); }