Package buildcraft.api.blueprints

Examples of buildcraft.api.blueprints.SchematicBlockBase


            if (yCoord < 0 || yCoord >= context.world.getHeight()) {
              continue;
            }

            SchematicBlockBase slot = blueprint.contents[i][j][k];

            if (slot == null
                && !clearedLocations.contains(new BlockIndex(
                    xCoord, yCoord, zCoord))) {
              BuildingSlotBlock b = new BuildingSlotBlock();

              b.schematic = null;
              b.x = xCoord;
              b.y = yCoord;
              b.z = zCoord;
              b.mode = Mode.ClearIfInvalid;
              b.buildStage = 0;

              buildList.add(b);
            }
          }
        }
      }
    }

    for (int j = 0; j < blueprint.sizeY; ++j) {
      for (int i = 0; i < blueprint.sizeX; ++i) {
        for (int k = 0; k < blueprint.sizeZ; ++k) {
          int xCoord = i + x - blueprint.anchorX;
          int yCoord = j + y - blueprint.anchorY;
          int zCoord = k + z - blueprint.anchorZ;

          if (yCoord < 0 || yCoord >= context.world.getHeight()) {
            continue;
          }

          SchematicBlockBase slot = blueprint.contents[i][j][k];

          if (slot != null && !builtLocations.contains(new BlockIndex(xCoord, yCoord, zCoord))) {
            BuildingSlotBlock b = new BuildingSlotBlock();

            b.schematic = slot;
View Full Code Here

TOP

Related Classes of buildcraft.api.blueprints.SchematicBlockBase

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.