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