Class AdvancedWorldCreatorAPI
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
de.freesoccerhdx.advancedworldcreatorapi.AdvancedWorldCreatorAPI
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.event.Listener
,org.bukkit.plugin.Plugin
public final class AdvancedWorldCreatorAPI
extends org.bukkit.plugin.java.JavaPlugin
implements org.bukkit.event.Listener
Represents the main class of the AdvancedWorldCreatorAPI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.World
createWorld
(AdvancedWorldCreator creator) Creates theWorld
with the providedAdvancedWorldCreator
Modified version ofCraftServer.createWorld(WorldCreator)
static boolean
Allows to create a custom Environment or even override an existing onestatic boolean
registerGeneratorConfiguration
(GeneratorConfiguration generatorConfiguration) Simple Method to generate GeneratorSettingBase (How the Terrain will generate and which structures)Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, isEnabled, isNaggable, onCommand, onDisable, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Constructor Details
-
AdvancedWorldCreatorAPI
public AdvancedWorldCreatorAPI()
-
-
Method Details
-
createWorld
Creates theWorld
with the providedAdvancedWorldCreator
Modified version ofCraftServer.createWorld(WorldCreator)
- Parameters:
creator
- The CustomAdvancedWorldCreator
- Returns:
- The
World
that will be created or exists already
-
registerCustomEnvironment
Allows to create a custom Environment or even override an existing one- Parameters:
builder
- TheEnvironmentBuilder
to create the Environment- Returns:
- true if creating and registering of the Environment was successful
-
registerGeneratorConfiguration
Simple Method to generate GeneratorSettingBase (How the Terrain will generate and which structures)- Parameters:
generatorConfiguration
- TheGeneratorConfiguration
to generate the GeneratorSettingBase- Returns:
- true if creating and registering of the GeneratorConfiguration was successful
-