AntiCheatBase/src/main/java/utils/world/types/SimpleCollisionBox.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(SimpleCollisionBox other, double offsetX) {
        if (other.yMax > this.yMin && other.yMin < this.yMax && other.zMax > this.zMin && other.zMin < this.zMax) {
            if (offsetX > 0.0D && other.xMax <= this.xMin) {
                double d1 = this.xMin - other.xMax;
                if (d1 < offsetX) {
                    offsetX = d1;
                }
            } else if (offsetX < 0.0D && other.xMin >= this.xMax) {
                double d0 = this.xMax - other.xMin;
                if (d0 > offsetX) {
                    offsetX = d0;
                }
            }
            return offsetX;
        } else {
            return offsetX;
        }
    }
public double calculateXOffset ( SimpleCollisionBox other , double offsetX ) { if ( other . yMax > this . yMin && other . yMin < this . yMax && other . zMax > this . zMin && other . zMin < this . zMax ) { if ( offsetX > 0.0D && other . xMax <= this . xMin ) { double d1 = this . xMin - other . xMax ; if ( d1 < offsetX ) { offsetX = d1 ; } } else if ( offsetX < 0.0D && other . xMin >= this . xMax ) { double d0 = this . xMax - other . xMin ; 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 .