Package org.spout.api.util.cuboid

Examples of org.spout.api.util.cuboid.CuboidBlockMaterialBuffer


          }
        } :
        new LightGenerator() {
          @Override
          public int getEmittedLight(int x, int y, int z) {
            CuboidBlockMaterialBuffer b = materialBuffers[1][1][1];
            if (b == null) {
              return 0;
            }
            BlockMaterial m = b.get(bx + x, by + y, bz + z);
            short data = b.getData(bx + x, by + y, bz + z);
            return m.getLightLevel(data);
          }
        };
    boolean failure = false;
    for (int x = 0; x < Chunk.BLOCKS.SIZE; x++) {
View Full Code Here


    }
    if (z >= Chunk.BLOCKS.SIZE) {
      zi++;
      z -= Chunk.BLOCKS.SIZE;
    }
    CuboidBlockMaterialBuffer b = buffers[xi][yi][zi];
    if (buffers[xi][yi][zi] == null) {
      return null;
    }
    Vector3f base = b.getBase();
    return b.get(x + base.getFloorX(), y + base.getFloorY(), z + base.getFloorZ());
  }
View Full Code Here

TOP

Related Classes of org.spout.api.util.cuboid.CuboidBlockMaterialBuffer

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.