Package buildcraft.api.blueprints

Examples of buildcraft.api.blueprints.SchematicMask


    int posX = (int) (x - context.surroundingBox().pMin().x);
    int posY = (int) (y - context.surroundingBox().pMin().y);
    int posZ = (int) (z - context.surroundingBox().pMin().z);

    if (!BuildCraftAPI.isSoftBlock(anchorTile.getWorldObj(), x, y, z)) {
      contents[posX][posY][posZ] = new SchematicMask(true);
    }
  }
View Full Code Here


    for (int x = 0; x < sizeX; ++x) {
      for (int y = 0; y < sizeY; ++y) {
        for (int z = 0; z < sizeZ; ++z) {
          if (data [ind] == 1) {
            contents[x][y][z] = new SchematicMask(true);
          }

          ind++;
        }
      }
View Full Code Here

    Template bpt = new Template(box.sizeX(), yMax - yMin + 1, box.sizeZ());

    if (box.pMin().y > 0) {
      for (int x = xMin; x <= xMax; ++x) {
        for (int z = zMin; z <= zMax; ++z) {
          bpt.contents[x - xMin][0][z - zMin] = new SchematicMask(true);
        }
      }
    }

    return bpt;
View Full Code Here

  public int buildStage = 0;

  @Override
  public SchematicBlockBase getSchematic () {
    if (schematic == null) {
      return new SchematicMask(false);
    } else {
      return schematic;
    }
  }
View Full Code Here

    for (int y = yMin; y <= yMax; ++y) {
      for (int x = xMin; x <= xMax; ++x) {
        for (int z = zMin; z <= zMax; ++z) {
          if (isValid(x, y, z, template)) {
            template.contents[x][y][z] = new SchematicMask(true);
          }
        }
      }
    }
  }
View Full Code Here

    for (int x = xMin; x <= xMax; ++x) {
      for (int z = zMin; z <= zMax; ++z) {
        for (int y = yMax; y >= yMin; --y) {
          if (isValid(x, y, z, template)) {
            template.contents [x][y][z] = new SchematicMask(true);
          }
        }
      }
    }
  }
View Full Code Here

    Template bpt = new Template(box.sizeX(), yMax - yMin + 1, box.sizeZ());

    if (box.pMin().y > 0) {
      for (int x = xMin; x <= xMax; ++x) {
        for (int z = zMin; z <= zMax; ++z) {
          bpt.contents[x - xMin][0][z - zMin] = new SchematicMask(true);
        }
      }
    }

    return bpt;
View Full Code Here

    }

    while (step <= xSize / 2 && step <= zSize / 2 && height >= yMin && height <= yMax) {
      for (int x = xMin + step; x <= xMax - step; ++x) {
        for (int z = zMin + step; z <= zMax - step; ++z) {
          bpt.contents [x - xMin][height - yMin][z - zMin] = new SchematicMask(true);
        }
      }

      step++;
      height += stepY;
View Full Code Here

    int yMax = box.sizeY() - 1;
    int zMax = box.sizeZ() - 1;

    for (int it = 0; it < 2; it++) {
      for (int i = 0; i < template.sizeX; ++i) {
        template.contents [i][it * (box.sizeY() - 1)][0] = new SchematicMask (true);
        template.contents [i][it * (box.sizeY() - 1)][template.sizeZ - 1] = new SchematicMask (true);
      }

      for (int k = 0; k < template.sizeZ; ++k) {
        template.contents [0][it * (box.sizeY() - 1)][k] = new SchematicMask (true);
        template.contents [template.sizeX - 1][it * (box.sizeY() - 1)][k] = new SchematicMask (true);
      }
    }

    for (int h = 1; h < box.sizeY(); ++h) {
      template.contents [0][h][0] = new SchematicMask (true);
      template.contents [0][h][template.sizeZ - 1] = new SchematicMask (true);
      template.contents [template.sizeX - 1][h][0] = new SchematicMask (true);
      template.contents [template.sizeX - 1][h][template.sizeZ - 1] = new SchematicMask (true);
    }

    return template;
  }
View Full Code Here

public class SchematicFactoryMask extends SchematicFactory<SchematicMask> {

  @Override
  protected SchematicMask loadSchematicFromWorldNBT (NBTTagCompound nbt, MappingRegistry registry) {
    SchematicMask s = new SchematicMask();
    s.readSchematicFromNBT(nbt, registry);

    return s;
  }
View Full Code Here

TOP

Related Classes of buildcraft.api.blueprints.SchematicMask

Copyright © 2018 www.massapicom. 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.