Package org.bukkit

Examples of org.bukkit.WorldCreator.generator()


        WorldCreator c = new WorldCreator(worldname);
        wc.worldmode.apply(c);
        if (seed != 0) {
          c.seed(seed);
        }
        c.generator(cgen);
        w = c.createWorld();
      } catch (Exception ex) {
        failReason = ex;
      }
      if (w != null) break;
View Full Code Here


      // if neither then create/build it!
      WorldCreator worldcreator = new WorldCreator(DEFAULT_WORLD_NAME);
      //worldcreator.seed(-7457540200860308014L); // Beta seed
      //worldcreator.seed(5509442565638151977L); // 82,-35
      worldcreator.environment(environment);
      worldcreator.generator(new WorldGenerator(plugin, DEFAULT_WORLD_NAME, style.toString()));
      cityWorldPrime = Bukkit.getServer().createWorld(worldcreator);
    }
    return cityWorldPrime;
  }
}
View Full Code Here

            c.seed(seed);
        }

        // TODO: Use the fancy kind with the commandSender
        if (generator != null && generator.length() != 0) {
            c.generator(generator);
        }
        c.environment(env);
        if (type != null) {
            c.type(type);
        }
View Full Code Here

        boolean generatorSuccess = true;
        if ((world.getGenerator() != null) && (!world.getGenerator().equals("null")))
            generatorSuccess = null != plugin.getUnsafeCallWrapper().wrap(new Callable<Object>() {
                @Override
                public Object call() throws Exception {
                    creator.generator(world.getGenerator());
                    return new Object();
                }
            }, "the generator plugin", "Failed to set the generator for world '%s' to '%s': %s", name, world.getGenerator());

        return generatorSuccess && doLoad(creator, ignoreExists);
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.