Class AdvancedWorldCreator
java.lang.Object
org.bukkit.WorldCreator
de.freesoccerhdx.advancedworldcreatorapi.AdvancedWorldCreator
public class AdvancedWorldCreator
extends org.bukkit.WorldCreator
This class is used to create a new world with the AdvancedWorldCreatorAPI
-
Constructor Summary
ConstructorDescriptionAdvancedWorldCreator
(String worldname) Creates an empty WorldCreationOptions for the given world name -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.World
Gets theAdvancedBiomeProvider
or null if not set.Gets theEnvironmentBuilder
or null if not set beforeGets theGeneratorConfiguration
or null if not set beforevoid
setAdvancedBiomeProvider
(AdvancedBiomeProvider advancedBiomeProvider) Can be used to set aAdvancedBiomeProvider
withBiomeCreator.CustomBiome
Only works if you don't set a Bukkit-BiomeProvider!void
setEnvironmentBuilder
(EnvironmentBuilder environmentBuilder) Sets theEnvironmentBuilder
to create a CustomWorld.Environment
null as Argument will remove theEnvironmentBuilder
and will set theWorld.Environment
to Normal, otherwise to Customvoid
setGeneratorConfiguration
(GeneratorConfiguration generatorConfiguration) Sets theGeneratorConfiguration
to create a more modifier World.Methods inherited from class org.bukkit.WorldCreator
biomeProvider, biomeProvider, biomeProvider, biomeProvider, copy, copy, environment, environment, generateStructures, generateStructures, generator, generator, generator, generator, generatorSettings, generatorSettings, getBiomeProviderForName, getGeneratorForName, hardcore, hardcore, name, name, seed, seed, type, type
-
Constructor Details
-
AdvancedWorldCreator
Creates an empty WorldCreationOptions for the given world name- Parameters:
worldname
- Name of the world that will be created
-
-
Method Details
-
setGeneratorConfiguration
Sets theGeneratorConfiguration
to create a more modifier World. null as Argument will remove theGeneratorConfiguration
and will generate the World with vanilla behaviour- Parameters:
generatorConfiguration
- The Custom GeneratorConfiguration
-
getGeneratorConfiguration
Gets theGeneratorConfiguration
or null if not set before- Returns:
- GeneratorConfiguration
-
setEnvironmentBuilder
Sets theEnvironmentBuilder
to create a CustomWorld.Environment
null as Argument will remove theEnvironmentBuilder
and will set theWorld.Environment
to Normal, otherwise to Custom- Parameters:
environmentBuilder
- The Builder for the Custom Environment
-
getEnvironmentBuilder
Gets theEnvironmentBuilder
or null if not set before- Returns:
- The @
EnvironmentBuilder
-
createWorld
public org.bukkit.World createWorld()- Overrides:
createWorld
in classorg.bukkit.WorldCreator
-
setAdvancedBiomeProvider
Can be used to set aAdvancedBiomeProvider
withBiomeCreator.CustomBiome
Only works if you don't set a Bukkit-BiomeProvider! -
getAdvancedBiomeProvider
Gets theAdvancedBiomeProvider
or null if not set.- Returns:
- The
AdvancedBiomeProvider
or null if not set.
-