code: public static int compare(Point offset, BlockPos pos1, BlockPos pos2)
  	{
  		if (pos1.equals(pos2))
  			return 0;
  
  		return Double.compare(pos1.distanceSq(offset.x, offset.y, offset.z), pos2.distanceSq(offset.x, offset.y, offset.z));
  	}
docs: Compares the distance of the passed {@link BlockPos} to the <i>offset</i> {@link Point}.
  
  @param offset the offset
  @param pos1 the pos 1
  @param pos2 the pos 2
  @return the int