}
final BoundingBox boundingBox = temple.getBoundingBox();
y = getAverageHeight(w, x, z, (int) boundingBox.getXSize(), (int) boundingBox.getZSize());
temple.setPosition(new Point(w, x, y, z));
temple.setRotation(Quaternionf.fromAngleDegAxis(random.nextInt(4) * 90, 0, 1, 0));
if (temple.canPlace()) {
temple.place();
}
}
private StructurePiece getTemple(Biome biome) {