Class BlockPopulator

java.lang.Object
org.bukkit.generator.BlockPopulator

public abstract class BlockPopulator
extends java.lang.Object
A block populator is responsible for generating a small area of blocks.

For example, generating glowstone inside the nether or generating dungeons full of treasure

  • Constructor Summary

    Constructors 
    Constructor Description
    BlockPopulator()  
  • Method Summary

    Modifier and Type Method Description
    abstract void populate​(World world, java.util.Random random, Chunk source)
    Populates an area of blocks at or around the given chunk.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • populate

      public abstract void populate​(World world, java.util.Random random, Chunk source)
      Populates an area of blocks at or around the given chunk.

      The chunks on each side of the specified chunk must already exist; that is, there must be one north, east, south and west of the specified chunk. The "corner" chunks may not exist, in which scenario the populator should record any changes required for those chunks and perform the changes when they are ready.

      Parameters:
      world - The world to generate in
      random - The random generator to use
      source - The chunk to generate for