for (int z = zS; z <= zL; ++z) {
Chunk chunk = world.getChunkFromBlockCoords(x, z);
int cX = x & 15, cZ = z & 15;
for (int y = yS; y <= yL; ++y) {
Block block = chunk.getBlock(cX, y, cZ);
Material m = block.getMaterial();
if (m == Material.grass || m == Material.ground || m == Material.clay || m == Material.snow
|| m == Material.craftedSnow || m == Material.ice || m == Material.packedIce) {
if (chunk.func_150807_a(cX, y, cZ, Blocks.air, 0)) {
set.add(chunk);
}
}
}
}
}
} else if (blockRaw.equals("*plants")) {
for (int x = xS; x <= xL; ++x) {
for (int z = zS; z <= zL; ++z) {
Chunk chunk = world.getChunkFromBlockCoords(x, z);
int cX = x & 15, cZ = z & 15;
for (int y = yS; y <= yL; ++y) {
Block block = chunk.getBlock(cX, y, cZ);
Material m = block.getMaterial();
if (m == Material.plants || m == Material.vine || m == Material.cactus || m == Material.leaves) {
if (chunk.func_150807_a(cX, y, cZ, Blocks.air, 0)) {
set.add(chunk);
}
}
}
}
}
} else if (blockRaw.equals("*fire")) {
for (int x = xS; x <= xL; ++x) {
for (int z = zS; z <= zL; ++z) {
Chunk chunk = world.getChunkFromBlockCoords(x, z);
int cX = x & 15, cZ = z & 15;
for (int y = yS; y <= yL; ++y) {
Block block = chunk.getBlock(cX, y, cZ);
Material m = block.getMaterial();
if (m == Material.fire || m == Material.lava || block.isBurning(world, x, y, z)) {
if (chunk.func_150807_a(cX, y, cZ, Blocks.air, 0)) {
set.add(chunk);
}
}