Package cofh.repack.codechicken.lib.vec

Examples of cofh.repack.codechicken.lib.vec.BlockCoord


      int[] ia = new int[3];
      ia[side >> 1] = c.getSide(side);
      ia[sideU >> 1] = c.getSide(sideU ^ 1);
      ia[sideV >> 1] = c.getSide(sideV ^ 1);
      BlockCoord b = BlockCoord.fromAxes(ia);
      BlockCoord bU = BlockCoord.sideOffsets[sideU];
      BlockCoord bV = BlockCoord.sideOffsets[sideV];
      for (int u = 0; u < image.width(); u++) {
        for (int v = 0; v < image.height(); v++) {
          image.data[u][v] = mat.matrix[b.x + bU.x * u + bV.x * v][b.y + bU.y * u + bV.y * v][b.z + bU.z * u + bV.z * v];
        }
      }
 
View Full Code Here


      for (int x = 0; x < size.x; x++) {
        for (int z = 0; z < size.z; z++) {
          for (int y = 0; y < size.y; y++) {
            if (solid[x][y][z]) {
              list.add(expand(solid, new BlockCoord(x, y, z)));
            }
          }
        }
      }
View Full Code Here

    m.matrices = new QBMatrix[readTni(din)];
    for (int i = 0; i < m.matrices.length; i++) {
      QBMatrix mat = new QBMatrix();
      m.matrices[i] = mat;
      mat.name = readAsciiString(din);
      mat.size = new BlockCoord(readTni(din), readTni(din), readTni(din));
      mat.pos = new BlockCoord(readTni(din), readTni(din), readTni(din));
      mat.matrix = new int[mat.size.x][mat.size.y][mat.size.z];
      mat.readMatrix(din, compressed);
      if (colorFormat == 1) {
        mat.convertBGRAtoRGBA();
      }
View Full Code Here

TOP

Related Classes of cofh.repack.codechicken.lib.vec.BlockCoord

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.