Package cofh.repack.codechicken.lib.vec

Examples of cofh.repack.codechicken.lib.vec.CuboidCoord.expand()


      CuboidCoord c = new CuboidCoord(b);
      solid[b.x][b.y][b.z] = false;

      for (int s = 0; s < 6; s++) {
        CuboidCoord slice = c.copy();
        slice.expand(s ^ 1, -(slice.size(s) - 1));
        slice.expand(s, 1);

        while (slice.getSide(s) >= 0 && slice.getSide(s) < size.getSide(s)) {
          if (!voxelFull(solid, slice)) {
            break;
View Full Code Here


      solid[b.x][b.y][b.z] = false;

      for (int s = 0; s < 6; s++) {
        CuboidCoord slice = c.copy();
        slice.expand(s ^ 1, -(slice.size(s) - 1));
        slice.expand(s, 1);

        while (slice.getSide(s) >= 0 && slice.getSide(s) < size.getSide(s)) {
          if (!voxelFull(solid, slice)) {
            break;
          }
View Full Code Here

        while (slice.getSide(s) >= 0 && slice.getSide(s) < size.getSide(s)) {
          if (!voxelFull(solid, slice)) {
            break;
          }
          slice.expand(s ^ 1, -1);
          slice.expand(s, 1);
          c.expand(s, 1);
        }
      }
      return new QBCuboid(this, c);
View Full Code Here

        while (slice.getSide(s) >= 0 && slice.getSide(s) < size.getSide(s)) {
          if (!voxelFull(solid, slice)) {
            break;
          }
          slice.expand(s ^ 1, -1);
          slice.expand(s, 1);
          c.expand(s, 1);
        }
      }
      return new QBCuboid(this, c);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.