Package buildcraft.core

Examples of buildcraft.core.Box


    this.x = x;
    this.y = y;
    this.z = z;
    done = false;

    Box box = new Box();
    box.initialize(this);

    context = bluePrint.getContext(world, box);
  }
View Full Code Here


    int zMin = z - anchorZ;
    int xMax = x + sizeX - anchorX - 1;
    int yMax = y + sizeY - anchorY - 1;
    int zMax = z + sizeZ - anchorZ - 1;

    Box res = new Box();
    res.initialize(xMin, yMin, zMin, xMax, yMax, zMax);
    res.reorder();

    return res;
  }
View Full Code Here

    }
  }

  @Override
  public AxisAlignedBB getRenderBoundingBox() {
    return new Box(this).extendToEncompass(laser.tail).getBoundingBox();
  }
View Full Code Here

    return false;
  }

  @Override
  public AxisAlignedBB getRenderBoundingBox() {
    return new Box (this).extendToEncompass(box).expand(50).getBoundingBox();
  }
View Full Code Here

  @RPC (RPCSide.BOTH)
  public void createFrame (int x, int y, int z) {
    isCreatingFrame = true;
    AnchoredBox a = new AnchoredBox();
    a.box = new Box (x, y, z, x, y + 2, z);
    a.x1 = x;
    a.y1 = y;
    a.z1 = z;
    frames.add(a);
  }
View Full Code Here

    return false;
  }

  @Override
  public AxisAlignedBB getRenderBoundingBox() {
    Box box = new Box(this);

    for (AnchoredBox b : frames) {
      box.extendToEncompass(b.box);
    }

    return box.getBoundingBox();
  }
View Full Code Here

    return box;
  }

  @Override
  public AxisAlignedBB getRenderBoundingBox() {
    return new Box (this).extendToEncompass(box).expand(50).getBoundingBox();
  }
View Full Code Here

  @Override
  public void areaSet (GuiUrbanist gui, int x1, int y1, int z1, int x2, int y2, int z2) {
    super.areaSet(gui, x1, y1, z1, x2, y2, z2);

    if (selection != -1) {
      Box box = new Box();
      box.initialize(x1, y1, z1, x2, y2, z2);

      gui.urbanist.rpcStartFiller(fillerSlots.get(selection).getPattern().getUniqueTag(), box);
    }

  }
View Full Code Here

    return box;
  }

  @Override
  public AxisAlignedBB getRenderBoundingBox() {
    Box completeBox = new Box(this).extendToEncompass(box);

    for (LaserData d : subLasers) {
      completeBox.extendToEncompass(d.tail);
    }

    return completeBox.getBoundingBox();
  }
View Full Code Here

            TileEntityRendererDispatcher.instance.field_147553_e,
            getTexture(b.kind), b);
        }
      }
    } else if (tileentity instanceof IBoxProvider) {
      Box b = ((IBoxProvider) tileentity).getBox();

      if (b.isVisible) {
        RenderBox.doRender(
          TileEntityRendererDispatcher.instance.field_147553_e,
          getTexture(b.kind), b);
View Full Code Here

TOP

Related Classes of buildcraft.core.Box

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.