Package buildcraft.core.blueprints

Examples of buildcraft.core.blueprints.Template


    int xMax = (int) box.pMax().x;
    int yMax = world.getActualHeight();
    int zMax = (int) box.pMax().z;

    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);
View Full Code Here


  }


  @Override
  public Template getTemplate(Box box, World world) {
    Template result = new Template (box.sizeX(), box.sizeY(), box.sizeZ());

    int xMin = 0;
    int yMin = 0;
    int zMin = 0;
View Full Code Here

    int xMax = (int) box.pMax().x;
    int yMax = (int) box.pMax().y;
    int zMax = (int) box.pMax().z;

    Template bpt = new Template(xMax - xMin + 1, yMax - yMin + 1, zMax - zMin + 1);

    return bpt;
  }
View Full Code Here

  public abstract Template getTemplate (Box box, World world);

  public Blueprint getBlueprint (Box box, World world, Block block, int meta) {
    Blueprint result = new Blueprint (box.sizeX(), box.sizeY(), box.sizeZ());

    Template tmpl = getTemplate(box, world);

    for (int x = 0; x < box.sizeX(); ++x) {
      for (int y = 0; y < box.sizeY(); ++y) {
        for (int z = 0; z < box.sizeZ(); ++z) {
          if (tmpl.contents[x][y][z] != null) {
View Full Code Here

    int zMax = box.sizeZ() - 1;

    int sizeX = xMax - xMin + 1;
    int sizeZ = zMax - zMin + 1;

    Template template = new Template (box.sizeX(), box.sizeY(), box.sizeZ());

    int height;
    int heightStep;
    int dimX = 0;
    int dimZ = 0;
View Full Code Here

    super("fill");
  }

  @Override
  public Template getTemplate (Box box, World world) {
    Template bpt = new Template(box.sizeX(), box.sizeY(), box.sizeZ());

    fill (0, 0, 0, box.sizeX() - 1, box.sizeY() - 1, box.sizeZ() - 1, bpt);

    return bpt;
  }
View Full Code Here

    int xMax = (int) box.pMax().x;
    int yMax = (int) box.pMax().y;
    int zMax = (int) box.pMax().z;

    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);
View Full Code Here

    int xMax = (int) box.pMax().x;
    int yMax = (int) box.pMax().y;
    int zMax = (int) box.pMax().z;

    Template bpt = new Template(xMax - xMin + 1, yMax - yMin + 1, zMax - zMin + 1);

    int xSize = xMax - xMin + 1;
    int zSize = zMax - zMin + 1;

    int step = 0;
View Full Code Here

    super("frame");
  }

  @Override
  public Template getTemplate(Box box, World world) {
    Template template = new Template (box.sizeX(), box.sizeY(), box.sizeZ());

    int xMin = 0;
    int yMin = 0;
    int zMin = 0;
View Full Code Here

    super("box");
  }

  @Override
  public Template getTemplate(Box box, World world) {
    Template result = new Template (box.sizeX(), box.sizeY(), box.sizeZ());

    int xMin = 0;
    int yMin = 0;
    int zMin = 0;
View Full Code Here

TOP

Related Classes of buildcraft.core.blueprints.Template

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.