code: public static AxisAlignedBB rotate(AxisAlignedBB aabb, EnumFacing dir)
  	{
  		if (dir == EnumFacing.SOUTH)
  			return aabb;
  
  		int angle = dir.getAxis() == Axis.Y ? dir.getAxisDirection().getOffset() : EnumFacingUtils.getRotationCount(dir);
  		Axis axis = dir.getAxis() == Axis.Y ? Axis.X : Axis.Y;
  
  		return rotate(aabb, angle, axis);
  	}
docs: Rotates the {@link AxisAlignedBB} based on the specified direction.<br>
  Assumes {@link EnumFacing#SOUTH} to be the default non rotated direction.
  
  
  @param aabb the aabb
  @param dir the dir
  @return the axis aligned bb