public void renderParticles(Entity var1, float var2) {
      float var3 = MathHelper.cos(var1.rotationYaw * 3.1415927F / 180.0F);
      float var4 = MathHelper.sin(var1.rotationYaw * 3.1415927F / 180.0F);
      float var5 = -var4 * MathHelper.sin(var1.rotationPitch * 3.1415927F / 180.0F);
      float var6 = var3 * MathHelper.sin(var1.rotationPitch * 3.1415927F / 180.0F);
      float var7 = MathHelper.cos(var1.rotationPitch * 3.1415927F / 180.0F);
      EntityFX.interpPosX = var1.lastTickPosX + (var1.posX - var1.lastTickPosX) * (double)var2;
      EntityFX.interpPosY = var1.lastTickPosY + (var1.posY - var1.lastTickPosY) * (double)var2;
      EntityFX.interpPosZ = var1.lastTickPosZ + (var1.posZ - var1.lastTickPosZ) * (double)var2;

      for(int var8 = 0; var8 < 3; ++var8) {
         if(!this.fxLayers[var8].isEmpty()) {
            int var9 = 0;
            if(var8 == 0) {
               var9 = this.renderer.getTexture(Minecraft.PARTICLES_TEXTURE);
            }

            if(var8 == 1) {
               var9 = this.renderer.getTexture(Minecraft.TERRAIN_TEXTURE);
            }

            if(var8 == 2) {
               var9 = this.renderer.getTexture(Minecraft.ITEMS_TEXTURE);
            }

            GL11.glBindTexture(3553 /*GL_TEXTURE_2D*/, var9);
            Tessellator var10 = Tessellator.instance;
            var10.startDrawingQuads();

            for(int var11 = 0; var11 < this.fxLayers[var8].size(); ++var11) {
               EntityFX var12 = (EntityFX)this.fxLayers[var8].get(var11);
               var12.renderParticle(var10, var2, var3, var7, var4, var5, var6);
            }

            var10.draw();
         }
      }

   }