// Path: java/com/countrygamer/pvz/entities/projectiles/EntityPodPop.java
// public class EntityPodPop extends EntityFX
// {
//   float reddustParticleScale;
// 
//   public EntityPodPop(World par1World, double par2, double par4, double par6, float par8, float par9, float par10)
//   {
//     this(par1World, par2, par4, par6, 1.0F, par8, par9, par10);
//   }
// 
//   public EntityPodPop(World par1World, double par2, double par4, double par6, float par8, float par9, float par10, float par11)
//   {
//     super(par1World, par2, par4, par6, 0.0D, 0.0D, 0.0D);
//     this.motionX *= 0.1000000014901161D;
//     this.motionY *= 0.1000000014901161D;
//     this.motionZ *= 0.1000000014901161D;
// 
//     if (par9 == 0.0F)
//     {
//       par9 = 1.0F;
//     }
// 
//     float var12 = (float)Math.random() * 0.4F + 0.6F;
//     this.particleRed = 0.0F;
//     this.particleGreen = 10.0F;
//     this.particleBlue = 0.0F;
//     this.particleScale *= 0.75F;
//     this.particleScale *= par8;
//     this.reddustParticleScale = this.particleScale;
//     this.particleMaxAge = (int)(8.0D / (Math.random() * 0.8D + 0.2D));
//     this.particleMaxAge = (int)(this.particleMaxAge * par8);
//     this.noClip = false;
//   }
// 
//   public void renderParticle(Tessellator par1Tessellator, float par2, float par3, float par4, float par5, float par6, float par7)
//   {
//     float var8 = (this.particleAge + par2) / this.particleMaxAge * 32.0F;
// 
//     if (var8 < 0.0F)
//     {
//       var8 = 0.0F;
//     }
// 
//     if (var8 > 1.0F)
//     {
//       var8 = 1.0F;
//     }
// 
//     this.particleScale = (this.reddustParticleScale * var8);
//     super.renderParticle(par1Tessellator, par2, par3, par4, par5, par6, par7);
//   }
// 
//   public void onUpdate()
//   {
//     this.prevPosX = this.posX;
//     this.prevPosY = this.posY;
//     this.prevPosZ = this.posZ;
// 
//     if (this.particleAge++ >= this.particleMaxAge)
//     {
//       setDead();
//     }
// 
//     setParticleTextureIndex(7 - this.particleAge * 8 / this.particleMaxAge);
//     moveEntity(this.motionX, this.motionY, this.motionZ);
// 
//     if (this.posY == this.prevPosY)
//     {
//       this.motionX *= 1.1D;
//       this.motionZ *= 1.1D;
//     }
// 
//     this.motionX *= 0.9599999785423279D;
//     this.motionY *= 0.9599999785423279D;
//     this.motionZ *= 0.9599999785423279D;
// 
//     if (this.onGround)
//     {
//       this.motionX *= 0.699999988079071D;
//       this.motionZ *= 0.699999988079071D;
//     }
//   }
// }


import net.minecraft.client.Minecraft;
import net.minecraft.client.particle.EntityFX;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.world.World;
import com.countrygamer.pvz.entities.projectiles.EntityPodPop;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
  private static TextureManager renderEngine = mc.renderEngine;

  public static EntityFX spawnParticle(String particleName, double par2, double par4, double par6, double par8, double par10, double par12)
  {
    if ((mc != null) && (mc.renderViewEntity != null) && (mc.effectRenderer != null))
    {
      int var14 = mc.gameSettings.particleSetting;

      if ((var14 == 1) && (theWorld.rand.nextInt(3) == 0))
      {
        var14 = 2;
      }

      double var15 = mc.renderViewEntity.posX - par2;
      double var17 = mc.renderViewEntity.posY - par4;
      double var19 = mc.renderViewEntity.posZ - par6;
      EntityFX var21 = null;
      double var22 = 16.0D;

      if (var15 * var15 + var17 * var17 + var19 * var19 > var22 * var22)
      {
        return null;
      }
      if (var14 > 1)
      {
        return null;
      }

      if (particleName.equals("pod-pop"))
      {
// Path: java/com/countrygamer/pvz/entities/projectiles/EntityPodPop.java
// public class EntityPodPop extends EntityFX
// {
//   float reddustParticleScale;
// 
//   public EntityPodPop(World par1World, double par2, double par4, double par6, float par8, float par9, float par10)
//   {
//     this(par1World, par2, par4, par6, 1.0F, par8, par9, par10);
//   }
// 
//   public EntityPodPop(World par1World, double par2, double par4, double par6, float par8, float par9, float par10, float par11)
//   {
//     super(par1World, par2, par4, par6, 0.0D, 0.0D, 0.0D);
//     this.motionX *= 0.1000000014901161D;
//     this.motionY *= 0.1000000014901161D;
//     this.motionZ *= 0.1000000014901161D;
// 
//     if (par9 == 0.0F)
//     {
//       par9 = 1.0F;
//     }
// 
//     float var12 = (float)Math.random() * 0.4F + 0.6F;
//     this.particleRed = 0.0F;
//     this.particleGreen = 10.0F;
//     this.particleBlue = 0.0F;
//     this.particleScale *= 0.75F;
//     this.particleScale *= par8;
//     this.reddustParticleScale = this.particleScale;
//     this.particleMaxAge = (int)(8.0D / (Math.random() * 0.8D + 0.2D));
//     this.particleMaxAge = (int)(this.particleMaxAge * par8);
//     this.noClip = false;
//   }
// 
//   public void renderParticle(Tessellator par1Tessellator, float par2, float par3, float par4, float par5, float par6, float par7)
//   {
//     float var8 = (this.particleAge + par2) / this.particleMaxAge * 32.0F;
// 
//     if (var8 < 0.0F)
//     {
//       var8 = 0.0F;
//     }
// 
//     if (var8 > 1.0F)
//     {
//       var8 = 1.0F;
//     }
// 
//     this.particleScale = (this.reddustParticleScale * var8);
//     super.renderParticle(par1Tessellator, par2, par3, par4, par5, par6, par7);
//   }
// 
//   public void onUpdate()
//   {
//     this.prevPosX = this.posX;
//     this.prevPosY = this.posY;
//     this.prevPosZ = this.posZ;
// 
//     if (this.particleAge++ >= this.particleMaxAge)
//     {
//       setDead();
//     }
// 
//     setParticleTextureIndex(7 - this.particleAge * 8 / this.particleMaxAge);
//     moveEntity(this.motionX, this.motionY, this.motionZ);
// 
//     if (this.posY == this.prevPosY)
//     {
//       this.motionX *= 1.1D;
//       this.motionZ *= 1.1D;
//     }
// 
//     this.motionX *= 0.9599999785423279D;
//     this.motionY *= 0.9599999785423279D;
//     this.motionZ *= 0.9599999785423279D;
// 
//     if (this.onGround)
//     {
//       this.motionX *= 0.699999988079071D;
//       this.motionZ *= 0.699999988079071D;
//     }
//   }
// }


// Path: java/com/countrygamer/pvz/ParticleEffects.java
import net.minecraft.client.Minecraft;
import net.minecraft.client.particle.EntityFX;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.world.World;
import com.countrygamer.pvz.entities.projectiles.EntityPodPop;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

  private static TextureManager renderEngine = mc.renderEngine;

  public static EntityFX spawnParticle(String particleName, double par2, double par4, double par6, double par8, double par10, double par12)
  {
    if ((mc != null) && (mc.renderViewEntity != null) && (mc.effectRenderer != null))
    {
      int var14 = mc.gameSettings.particleSetting;

      if ((var14 == 1) && (theWorld.rand.nextInt(3) == 0))
      {
        var14 = 2;
      }

      double var15 = mc.renderViewEntity.posX - par2;
      double var17 = mc.renderViewEntity.posY - par4;
      double var19 = mc.renderViewEntity.posZ - par6;
      EntityFX var21 = null;
      double var22 = 16.0D;

      if (var15 * var15 + var17 * var17 + var19 * var19 > var22 * var22)
      {
        return null;
      }
      if (var14 > 1)
      {
        return null;
      }

      if (particleName.equals("pod-pop"))
      {
        var21 = new EntityPodPop(theWorld, par2, par4, par6, (float)par8, (float)par10, (float)par12);