Examples of Stronghold


Examples of org.spout.vanilla.world.generator.normal.structure.stronghold.Stronghold

    }
    // 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 + ")");
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.