code: public static AxisAlignedBB[] rotate(AxisAlignedBB[] aabbs, EnumFacing dir)
  	{
  		if (ArrayUtils.isEmpty(aabbs) || dir == EnumFacing.SOUTH)
  			return aabbs;
  
  		int angle = dir.getAxis() == Axis.Y ? dir.getAxisDirection().getOffset() : EnumFacingUtils.getRotationCount(dir);
  		Axis axis = dir.getAxis() == Axis.Y ? Axis.X : Axis.Y;
  
  		for (int i = 0; i < aabbs.length; i++)
  			aabbs[i] = rotate(aabbs[i], angle, axis);
  		return aabbs;
  	}
docs: Rotates an array of {@link AxisAlignedBB} around the Y axis based on the specified direction.<br>
  Assumes {@link EnumFacing#SOUTH} to be the default non rotated direction.
  
  @param aabbs the aabbs
  @param dir the dir
  @return the axis aligned b b[]