    001    package net.minecraft.util;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005
    006    @SideOnly(Side.CLIENT)
    007    public class MouseFilter
    008    {
    009        private float field_76336_a;
    010        private float field_76334_b;
    011        private float field_76335_c;
    012
    013        public float func_76333_a(float par1, float par2)
    014        {
    015            this.field_76336_a += par1;
    016            par1 = (this.field_76336_a - this.field_76334_b) * par2;
    017            this.field_76335_c += (par1 - this.field_76335_c) * 0.5F;
    018
    019            if (par1 > 0.0F && par1 > this.field_76335_c || par1 < 0.0F && par1 < this.field_76335_c)
    020            {
    021                par1 = this.field_76335_c;
    022            }
    023
    024            this.field_76334_b += par1;
    025            return par1;
    026        }
    027    }