AntiCheatBase/src/main/java/utils/BoundingBox.java
/**
     * if instance and the argument bounding boxes overlap in the X and Z dimensions, calculate the offset between them
     * in the Y 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 X and Z dimensions, calculate the offset between them
in the Y 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 X and Z dimensions calculate the offset between them in the Y 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 calculateYOffset(BoundingBox other, double offsetY) {
        if (other.maxX > this.minX && other.minX < this.maxX && other.maxZ > this.minZ && other.minZ < this.maxZ) {
            if (offsetY > 0.0D && other.maxY <= this.minY) {
                double d1 = this.minY - other.maxY;
                if (d1 < offsetY) {
                    offsetY = d1;
                }
            } else if (offsetY < 0.0D && other.minY >= this.maxY) {
                double d0 = this.maxY - other.minY;
                if (d0 > offsetY) {
                    offsetY = d0;
                }
            }
            return offsetY;
        } else {
            return offsetY;
        }
    }
public double calculateYOffset ( BoundingBox other , double offsetY ) { if ( other . maxX > this . minX && other . minX < this . maxX && other . maxZ > this . minZ && other . minZ < this . maxZ ) { if ( offsetY > 0.0D && other . maxY <= this . minY ) { double d1 = this . minY - other . maxY ; if ( d1 < offsetY ) { offsetY = d1 ; } } else if ( offsetY < 0.0D && other . minY >= this . maxY ) { double d0 = this . maxY - other . minY ; if ( d0 > offsetY ) { offsetY = d0 ; } } return offsetY ; } else { return offsetY ; } }
if instance and the argument bounding boxes overlap in the X and Z dimensions, calculate the offset between them
 in the Y dimension.
if instance and the argument bounding boxes overlap in the X and Z dimensions calculate the offset between them in the Y dimension .