mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 22:22:18 -07:00
Added custom world generator API
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.bukkit;
|
||||
|
||||
import org.bukkit.generator.ChunkGenerator;
|
||||
import com.avaje.ebean.config.ServerConfig;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.Recipe;
|
||||
@@ -164,6 +165,31 @@ public interface Server {
|
||||
*/
|
||||
public World createWorld(String name, World.Environment environment, long seed);
|
||||
|
||||
/**
|
||||
* Creates or loads a world with the given name.
|
||||
* If the world is already loaded, it will just return the equivalent of
|
||||
* getWorld(name)
|
||||
*
|
||||
* @param name Name of the world to load
|
||||
* @param environment Environment type of the world
|
||||
* @param generator ChunkGenerator to use in the construction of the new world
|
||||
* @return Newly created or loaded World
|
||||
*/
|
||||
public World createWorld(String name, World.Environment environment, ChunkGenerator generator);
|
||||
|
||||
/**
|
||||
* Creates or loads a world with the given name.
|
||||
* If the world is already loaded, it will just return the equivalent of
|
||||
* getWorld(name)
|
||||
*
|
||||
* @param name Name of the world to load
|
||||
* @param environment Environment type of the world
|
||||
* @param seed Seed value to create the world with
|
||||
* @param generator ChunkGenerator to use in the construction of the new world
|
||||
* @return Newly created or loaded World
|
||||
*/
|
||||
public World createWorld(String name, World.Environment environment, long seed, ChunkGenerator generator);
|
||||
|
||||
/**
|
||||
* Gets the world with the given name
|
||||
*
|
||||
|
Reference in New Issue
Block a user