private void func_31010_a(float var1, float var2) {
      if(!this.extending) {
         --var1;
      } else {
         var1 = 1.0F - var1;
      }

      AxisAlignedBB var3 = Block.pistonMoving.func_31035_a(this.worldObj, this.xCoord, this.yCoord, this.zCoord, this.storedBlockID, var1, this.storedOrientation);
      if(var3 != null) {
         List var4 = this.worldObj.getEntitiesWithinAABBExcludingEntity((Entity)null, var3);
         if(!var4.isEmpty()) {
            field_31018_m.addAll(var4);
            Iterator var5 = field_31018_m.iterator();

            while(var5.hasNext()) {
               Entity var6 = (Entity)var5.next();
               var6.moveEntity((double)(var2 * (float)PistonBlockTextures.offsetsXForSide[this.storedOrientation]), (double)(var2 * (float)PistonBlockTextures.offsetsYForSide[this.storedOrientation]), (double)(var2 * (float)PistonBlockTextures.offsetsZForSide[this.storedOrientation]));
            }

            field_31018_m.clear();
         }
      }

   }