Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ed: the lack of braces is me following the project formatting guidelines
- for (int sy = 0; sy < 16; sy++)
- {
- if (snap.isSectionEmpty(sy))
- continue;
- for (int py = sy << 4; py < (sy << 4) + 16; py++)
- for (int iz = 0; iz < 16; iz++)
- for (int ix = 0; ix < 16; ix++)
- {
- int block = snap.getBlockTypeId(ix, py, iz);
- if (ArrayUtils.contains(interesting, block))
- {
- Vector pos = new Vector(baseX + ix, py, baseZ + iz);
- if (ArrayUtils.contains(CONTAINER_BLOCKS, block))
- master.foundContainers.add(pos);
- else
- {
- BlockData bd = new BlockData(Material.getMaterial(block), (byte) snap.getBlockData(ix, py, iz));
- for (BlockData data : goals)
- if (data.equals(bd))
- master.found.add(new _Entry<BlockData, Vector>(data, pos));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement