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.

Return

Chunk 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.

Return

This object, for chaining

Parameters

generator

Chunk generator


public 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 getClassById warning will be printed to the console.

Return

This object, for chaining

Parameters

generator

Name of the generator to use, in "plugin:id" notation


public 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 getClassById warning will be printed to the specified output

Return

This object, for chaining

Parameters

generator

Name of the generator to use, in "plugin:id" notation

output

CommandSender that will receive any error messages