![]() |
Bukkit
1.4.7-R1.0
|
Represents various types of options that may be used to create a world. More...
Public Member Functions | |
| WorldCreator (String name) | |
| Creates an empty WorldCreationOptions for the given world name. | |
| WorldCreator | copy (World world) |
| Copies the options from the specified world. | |
| WorldCreator | copy (WorldCreator creator) |
| Copies the options from the specified WorldCreator. | |
| String | name () |
| Gets the name of the world that is to be loaded or created. | |
| long | seed () |
| Gets the seed that will be used to create this world. | |
| WorldCreator | seed (long seed) |
| Sets the seed that will be used to create this world. | |
| World.Environment | environment () |
| Gets the environment that will be used to create or load the world. | |
| WorldCreator | environment (World.Environment env) |
| Sets the environment that will be used to create or load the world. | |
| WorldType | type () |
| Gets the type of the world that will be created or loaded. | |
| WorldCreator | type (WorldType type) |
| Sets the type of the world that will be created or loaded. | |
| ChunkGenerator | generator () |
| Gets the generator that will be used to create or load the world. | |
| WorldCreator | generator (ChunkGenerator generator) |
| Sets the generator that will be used to create or load the world. | |
| WorldCreator | generator (String generator) |
| Sets the generator that will be used to create or load the world. | |
| WorldCreator | generator (String generator, CommandSender output) |
| Sets the generator that will be used to create or load the world. | |
| WorldCreator | generateStructures (boolean generate) |
| Sets whether or not worlds created or loaded with this creator will have structures. | |
| boolean | generateStructures () |
| Gets whether or not structures will be generated in the world. | |
| World | createWorld () |
| Creates a world with the specified options. | |
Static Public Member Functions | |
| static WorldCreator | name (String name) |
| Creates a new WorldCreator for the given world name. | |
| static ChunkGenerator | getGeneratorForName (String world, String name, CommandSender output) |
| Attempts to get the ChunkGenerator with the given name. | |
Represents various types of options that may be used to create a world.
Definition at line 11 of file WorldCreator.java.
| org.bukkit.WorldCreator.WorldCreator | ( | String | name | ) |
Creates an empty WorldCreationOptions for the given world name.
| name | Name of the world that will be created |
Definition at line 24 of file WorldCreator.java.
References org.bukkit.WorldCreator.name(), and org.bukkit.WorldCreator.seed().
Referenced by org.bukkit.WorldCreator.name().
| WorldCreator org.bukkit.WorldCreator.copy | ( | World | world | ) |
Copies the options from the specified world.
| world | World to copy options from |
Definition at line 39 of file WorldCreator.java.
References org.bukkit.WorldCreator.environment(), org.bukkit.WorldCreator.generator(), org.bukkit.World.getEnvironment(), org.bukkit.World.getGenerator(), org.bukkit.World.getSeed(), and org.bukkit.WorldCreator.seed().
| WorldCreator org.bukkit.WorldCreator.copy | ( | WorldCreator | creator | ) |
Copies the options from the specified WorldCreator.
| creator | World creator to copy options from |
Definition at line 57 of file WorldCreator.java.
References org.bukkit.WorldCreator.environment(), org.bukkit.WorldCreator.generator(), and org.bukkit.WorldCreator.seed().
| World org.bukkit.WorldCreator.createWorld | ( | ) |
Creates a world with the specified options.
If the world already exists, it will be loaded from disk and some options may be ignored.
Definition at line 234 of file WorldCreator.java.
References org.bukkit.Bukkit.createWorld().
| World.Environment org.bukkit.WorldCreator.environment | ( | ) |
Gets the environment that will be used to create or load the world.
Definition at line 104 of file WorldCreator.java.
Referenced by org.bukkit.WorldCreator.copy(), and org.bukkit.WorldCreator.environment().
| WorldCreator org.bukkit.WorldCreator.environment | ( | World.Environment | env | ) |
Sets the environment that will be used to create or load the world.
| env | World environment |
Definition at line 114 of file WorldCreator.java.
References org.bukkit.WorldCreator.environment().
| WorldCreator org.bukkit.WorldCreator.generateStructures | ( | boolean | generate | ) |
Sets whether or not worlds created or loaded with this creator will have structures.
| generate | Whether to generate structures |
Definition at line 211 of file WorldCreator.java.
References org.bukkit.WorldCreator.generateStructures().
| boolean org.bukkit.WorldCreator.generateStructures | ( | ) |
Gets whether or not structures will be generated in the world.
Definition at line 222 of file WorldCreator.java.
Referenced by org.bukkit.WorldCreator.generateStructures().
| ChunkGenerator org.bukkit.WorldCreator.generator | ( | ) |
Gets the generator that will be used to create or load the world.
This may be null, in which case the "natural" generator for this environment will be used.
Definition at line 149 of file WorldCreator.java.
Referenced by org.bukkit.WorldCreator.copy(), and org.bukkit.WorldCreator.generator().
| WorldCreator org.bukkit.WorldCreator.generator | ( | ChunkGenerator | generator | ) |
Sets the generator that will be used to create or load the world.
This may be null, in which case the "natural" generator for this environment will be used.
| generator | Chunk generator |
Definition at line 162 of file WorldCreator.java.
References org.bukkit.WorldCreator.generator().
| WorldCreator org.bukkit.WorldCreator.generator | ( | String | generator | ) |
Sets the generator that will be used to create or load the world.
This may be null, in which case the "natural" generator for this environment will be used.
If the generator cannot be found for the given name, the natural environment generator will be used instead and a warning will be printed to the console.
| generator | Name of the generator to use, in "plugin:id" notation |
Definition at line 180 of file WorldCreator.java.
References org.bukkit.Bukkit.getConsoleSender(), org.bukkit.WorldCreator.getGeneratorForName(), and org.bukkit.WorldCreator.name().
| WorldCreator org.bukkit.WorldCreator.generator | ( | String | generator, |
| CommandSender | output | ||
| ) |
Sets the generator that will be used to create or load the world.
This may be null, in which case the "natural" generator for this environment will be used.
If the generator cannot be found for the given name, the natural environment generator will be used instead and a warning will be printed to the specified output
| generator | Name of the generator to use, in "plugin:id" notation |
| output | CommandSender that will receive any error messages |
Definition at line 199 of file WorldCreator.java.
References org.bukkit.WorldCreator.getGeneratorForName(), and org.bukkit.WorldCreator.name().
|
static |
Attempts to get the ChunkGenerator with the given name.
If the generator is not found, null will be returned and a message will be printed to the specified CommandSender explaining why.
The name must be in the "plugin:id" notation, or optionally just "plugin", where "plugin" is the safe-name of a plugin and "id" is an optional unique identifier for the generator you wish to request from the plugin.
| world | Name of the world this will be used for |
| name | Name of the generator to retrieve |
| output | Where to output if errors are present |
Definition at line 263 of file WorldCreator.java.
References org.bukkit.Bukkit.getConsoleSender(), org.bukkit.plugin.Plugin.getDefaultWorldGenerator(), org.bukkit.plugin.Plugin.getDescription(), org.bukkit.plugin.PluginDescriptionFile.getFullName(), org.bukkit.plugin.PluginManager.getPlugin(), org.bukkit.Bukkit.getPluginManager(), org.bukkit.plugin.Plugin.isEnabled(), and org.bukkit.command.CommandSender.sendMessage().
Referenced by org.bukkit.WorldCreator.generator().
| String org.bukkit.WorldCreator.name | ( | ) |
Gets the name of the world that is to be loaded or created.
Definition at line 74 of file WorldCreator.java.
Referenced by org.bukkit.WorldCreator.generator(), and org.bukkit.WorldCreator.WorldCreator().
|
static |
Creates a new WorldCreator for the given world name.
| name | Name of the world to load or create |
Definition at line 244 of file WorldCreator.java.
References org.bukkit.WorldCreator.WorldCreator().
| long org.bukkit.WorldCreator.seed | ( | ) |
Gets the seed that will be used to create this world.
Definition at line 83 of file WorldCreator.java.
Referenced by org.bukkit.WorldCreator.copy(), org.bukkit.WorldCreator.seed(), and org.bukkit.WorldCreator.WorldCreator().
| WorldCreator org.bukkit.WorldCreator.seed | ( | long | seed | ) |
Sets the seed that will be used to create this world.
| seed | World seed |
Definition at line 93 of file WorldCreator.java.
References org.bukkit.WorldCreator.seed().
| WorldType org.bukkit.WorldCreator.type | ( | ) |
Gets the type of the world that will be created or loaded.
Definition at line 125 of file WorldCreator.java.
Referenced by org.bukkit.WorldCreator.type().
| WorldCreator org.bukkit.WorldCreator.type | ( | WorldType | type | ) |
Sets the type of the world that will be created or loaded.
| type | World type |
Definition at line 135 of file WorldCreator.java.
References org.bukkit.WorldCreator.type().