Why did not you just changed the "e" values using sets?
e.setX(entity.getX())