mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-09 01:48:24 +01:00
Javadoc clarification
This commit is contained in:
parent
2cb561b943
commit
5d67dbe5e3
@ -117,7 +117,7 @@ public abstract class GameModeAddon extends Addon {
|
||||
/**
|
||||
* Defines the world generator for this game mode
|
||||
* @param worldName - name of world that this applies to
|
||||
* @param id - id if any
|
||||
* @param id - id if any. "delete" is used when this request is for island deletion purposes
|
||||
* @return Chunk generator or null if one does not exist, e.g. the use own generator setting is true
|
||||
* @since 1.2.0
|
||||
*/
|
||||
|
@ -11,7 +11,9 @@ import org.bukkit.World;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.generator.BlockPopulator;
|
||||
import org.bukkit.generator.ChunkGenerator;
|
||||
import org.bukkit.generator.LimitedRegion;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
import org.bukkit.util.BoundingBox;
|
||||
@ -105,6 +107,9 @@ public abstract class SimpleWorldRegenerator implements WorldRegenerator {
|
||||
if (cg != null) {
|
||||
ChunkGenerator.ChunkData cd = cg.generateChunkData(chunk.getWorld(), new Random(), chunk.getX(), chunk.getZ(), grid);
|
||||
copyChunkDataToChunk(chunk, cd, grid, di.getBox());
|
||||
for (BlockPopulator pop : cg.getDefaultPopulators(world)) {
|
||||
pop.populate(world, new Random(), chunkX, chunkZ, null);
|
||||
}
|
||||
}
|
||||
return chunk;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user