}
// This means only three strongholds per world, 1 per quadrant, except one excluded quadrant.
// All are near + or - 896 on x and z (by + or - 256 on x and z).
random = WorldGeneratorUtils.getRandom(world, blockX / absBlockX, 0,
blockZ / absBlockZ, 57845);
final Stronghold stronghold = new Stronghold(random);
final int x = blockX + random.nextInt(2 * variation + 1) - variation;
final int y = random.nextInt(randomElevation) + baseElevation;
final int z = blockZ + random.nextInt(2 * variation + 1) - variation;
if (stronghold.canPlaceObject(world, x, y, z)) {
stronghold.placeObject(world, x, y, z);
if (VanillaPlugin.getInstance().getEngine().debugMode()) {
Spout.getLogger().log(Level.INFO, "Placed stronghold at: (" + x + ", " + y + ", " + z + ")");
}
}
}