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