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