question: public static float updateValue ( float current , float target , float factor ) { float times = ( System . currentTimeMillis ( ) - ClientUtils . lastUpdate ) / 16.666666666666668F ; float off = ( off = target - current ) > 0.01F || off < - 0.01F ? off * ( float ) Math . pow ( factor , times ) : 0.0F ; return target - off ; }
target:  Update a value with a custom factor. How higher the factor, how slower the update. The value will get updated slower if the user has a low framerate.