    001    package net.minecraft.client.particle;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005    import net.minecraft.world.World;
    006
    007    @SideOnly(Side.CLIENT)
    008    public class EntityAuraFX extends EntityFX
    009    {
    010        public EntityAuraFX(World par1World, double par2, double par4, double par6, double par8, double par10, double par12)
    011        {
    012            super(par1World, par2, par4, par6, par8, par10, par12);
    013            float var14 = this.rand.nextFloat() * 0.1F + 0.2F;
    014            this.particleRed = var14;
    015            this.particleGreen = var14;
    016            this.particleBlue = var14;
    017            this.setParticleTextureIndex(0);
    018            this.setSize(0.02F, 0.02F);
    019            this.particleScale *= this.rand.nextFloat() * 0.6F + 0.5F;
    020            this.motionX *= 0.019999999552965164D;
    021            this.motionY *= 0.019999999552965164D;
    022            this.motionZ *= 0.019999999552965164D;
    023            this.particleMaxAge = (int)(20.0D / (Math.random() * 0.8D + 0.2D));
    024            this.noClip = true;
    025        }
    026
    027        /**
    028         * Called to update the entity's position/logic.
    029         */
    030        public void onUpdate()
    031        {
    032            this.prevPosX = this.posX;
    033            this.prevPosY = this.posY;
    034            this.prevPosZ = this.posZ;
    035            this.moveEntity(this.motionX, this.motionY, this.motionZ);
    036            this.motionX *= 0.99D;
    037            this.motionY *= 0.99D;
    038            this.motionZ *= 0.99D;
    039
    040            if (this.particleMaxAge-- <= 0)
    041            {
    042                this.setDead();
    043            }
    044        }
    045    }