Examples of VanillaGenerator


Examples of org.spout.vanilla.world.generator.VanillaGenerator

    for (WorldConfigurationNode worldNode : VanillaConfiguration.WORLDS.getAll()) {
      if (worldNode.LOAD.getBoolean()) {
        // Obtain generator and start generating world
        String generatorName = worldNode.GENERATOR.getString();
        VanillaGenerator generator = VanillaGenerators.byName(generatorName);
        if (generator == null) {
          throw new IllegalArgumentException("Invalid generator name for world '" + worldNode.getWorldName() + "': " + generatorName);
        }
        World world = ((Server) getEngine()).loadWorld(worldNode.getWorldName(), generator);
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.