@@ -0,0 +1,1020 @@
+package tehnut.lib.mc.util;%0A%0Aimport net.minecraft.util.math.AxisAlignedBB;%0A%0Apublic class BoundHelper %7B%0A%0A    public static AxisAlignedBB rotate(AxisAlignedBB bounds, AxisRotation rot) %7B%0A        return new AxisAlignedBB(%0A                rot.getX(bounds.minX, bounds.minZ), bounds.minY, rot.getX(bounds.maxX, bounds.maxZ),%0A                rot.getZ(bounds.minX, bounds.minZ), bounds.maxY, rot.getZ(bounds.maxX, bounds.maxZ)%0A        );%0A    %7D%0A%0A    public enum AxisRotation %7B%0A        NONE(1, 0, 0, 1),%0A        CLOCKWISE_90(0, 1, -1, 0),%0A        OPPOSITE(-1, 0, 0, -1),%0A        COUNTERCLOCKWISE_90(0, -1, 1, 0);%0A%0A        private final double xx, xz, zx, zz;%0A%0A        AxisRotation(double xx, double xz, double zx, double zz) %7B%0A            this.xx = xx; this.xz = xz;%0A            this.zx = zx; this.zz = zz;%0A        %7D%0A%0A        public final double getX(double x, double z) %7B%0A            return x * xx + z * xz;%0A        %7D%0A%0A        public final double getZ(double x, double z) %7B%0A            return x * zx + z * zz;%0A        %7D%0A    %7D%0A%7D%0A

Add utility for rotating AABBs