World API - rodrigoo-r/Harmony GitHub Wiki
Explanation
Harmony includes a World API. You can use it to create/delete/clone worlds without any dependency.
If you have Multiverse Core installed, Harmony will use the Multiverse API, if you don't have it installed, Harmony will use a dependency-free API.
Get the API instance
To get the World API instance, you must use the getWorldCreator()
method inside your plugin instance.
Example:
public final class Example extends BackendPlugin {
@Override
public void whenInitialize() {
NormalizedWorldCreator worldCreator = getWorldCreator();
// Your stuff goes here
}
@Override
public void whenUnloaded() {
// Plugin shutdown logic
}
}
Methods
Methods can be found at The JavaDoc