Added custom world generator API

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-06-06 13:23:30 +01:00
parent 63a68b3e10
commit 6ad28ba607
8 changed files with 144 additions and 0 deletions

View File

@ -1,10 +1,12 @@
package org.bukkit;
import org.bukkit.generator.ChunkGenerator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bukkit.block.Block;
import org.bukkit.entity.*;
import org.bukkit.generator.BlockPopulator;
import org.bukkit.inventory.ItemStack;
import org.bukkit.util.Vector;
@ -503,11 +505,25 @@ public interface World {
*/
public void setPVP(boolean pvp);
/**
* Gets the chunk generator for this world
*
* @return ChunkGenerator associated with this world
*/
public ChunkGenerator getGenerator();
/**
* Saves world to disk
*/
public void save();
/**
* Gets a list of all applied {@link BlockPopulator}s for this World
*
* @return List containing any or none BlockPopulators
*/
public List<BlockPopulator> getPopulators();
/**
* Represents various map environment types that a world may be
*/