Package org.spout.vanilla.world.generator.normal.structure.stronghold

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


    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.