Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
BlockPopulator.java
1 package org.bukkit.generator;
2 
3 import java.util.Random;
4 import org.bukkit.Chunk;
5 import org.bukkit.World;
6 
7 /**
8  * A block populator is responsible for generating a small area of blocks.
9  * <p>
10  * For example, generating glowstone inside the nether or generating dungeons
11  * full of treasure
12  */
13 public abstract class BlockPopulator {
14 
15  /**
16  * Populates an area of blocks at or around the given chunk.
17  * <p>
18  * The chunks on each side of the specified chunk must already exist; that
19  * is, there must be one north, east, south and west of the specified
20  * chunk. The "corner" chunks may not exist, in which scenario the
21  * populator should record any changes required for those chunks and
22  * perform the changes when they are ready.
23  *
24  * @param world The world to generate in
25  * @param random The random generator to use
26  * @param source The chunk to generate for
27  */
28  public abstract void populate(World world, Random random, Chunk source);
29 }
abstract void populate(World world, Random random, Chunk source)