AntiCheatBase/src/main/java/utils/BoundingBox.java
/**
     * if instance and the argument bounding boxes overlap in the Y and Z dimensions, calculate the offset between them
     * in the X dimension.  return var2 if the bounding boxes do not overlap or if var2 is closer to 0 then the
     * calculated offset.  Otherwise return the calculated offset.
     */
if instance and the argument bounding boxes overlap in the Y and Z dimensions, calculate the offset between them
in the X dimension.  return var2 if the bounding boxes do not overlap or if var2 is closer to 0 then the
calculated offset.  Otherwise return the calculated offset.
if instance and the argument bounding boxes overlap in the Y and Z dimensions calculate the offset between them in the X dimension . return var2 if the bounding boxes do not overlap or if var2 is closer to 0 then the calculated offset . Otherwise return the calculated offset .
public double calculateXOffset(BoundingBox other, double offsetX) {
        if (other.maxY > this.minY && other.minY < this.maxY && other.maxZ > this.minZ && other.minZ < this.maxZ) {
            if (offsetX > 0.0D && other.maxX <= this.minX) {
                double d1 = this.minX - other.maxX;
                if (d1 < offsetX) {
                    offsetX = d1;
                }
            } else if (offsetX < 0.0D && other.minX >= this.maxX) {
                double d0 = this.maxX - other.minX;
                if (d0 > offsetX) {
                    offsetX = d0;
                }
            }
            return offsetX;
        } else {
            return offsetX;
        }
    }
public double calculateXOffset ( BoundingBox other , double offsetX ) { if ( other . maxY > this . minY && other . minY < this . maxY && other . maxZ > this . minZ && other . minZ < this . maxZ ) { if ( offsetX > 0.0D && other . maxX <= this . minX ) { double d1 = this . minX - other . maxX ; if ( d1 < offsetX ) { offsetX = d1 ; } } else if ( offsetX < 0.0D && other . minX >= this . maxX ) { double d0 = this . maxX - other . minX ; if ( d0 > offsetX ) { offsetX = d0 ; } } return offsetX ; } else { return offsetX ; } }
if instance and the argument bounding boxes overlap in the Y and Z dimensions, calculate the offset between them
 in the X dimension.
if instance and the argument bounding boxes overlap in the Y and Z dimensions calculate the offset between them in the X dimension .