}
final World world = chunk.getWorld();
final Biome decorating = chunk.getBiome(7, 7, 7);
final byte amount = factory.amount(random);
for (byte count = 0; count < amount; count++) {
final TreeObject tree = factory.make(random);
tree.setRandom(random);
tree.randomize();
final int x = chunk.getBlockX(random);
final int z = chunk.getBlockZ(random);
if (decorating != world.getBiome(x, 64, z)) {
continue;
}
final int y = getHighestWorkableBlock(world, x, z);
if (y == -1) {
continue;
}
if (tree.canPlaceObject(world, x, y, z)) {
tree.placeObject(world, x, y, z);
}
}
}