public class WorldPainterChunkFactory extends java.lang.Object implements ChunkFactory
ChunkFactory.ChunkCreationResult, ChunkFactory.Stage, ChunkFactory.Stats| Modifier and Type | Field and Description | 
|---|---|
| static float | SUGAR_CANE_CHANCE | 
| static long | SUGAR_CANE_SEED_OFFSET | 
| Constructor and Description | 
|---|
| WorldPainterChunkFactory(Dimension dimension,
                        java.util.Map<Layer,LayerExporter> exporters,
                        Platform platform,
                        int maxHeightConstraint)Create a new  WorldPainterChunkFactory. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | applySubSurface(Tile tile,
               Chunk chunk,
               int xInTile,
               int yInTile,
               int minZ) | 
| void | applyTopLayer(Tile tile,
             Chunk chunk,
             int xInTile,
             int yInTile,
             int minZ,
             boolean onlyWhereSolid) | 
| ChunkFactory.ChunkCreationResult | createChunk(int chunkX,
           int chunkZ)Create the chunk at the specified location, if present. | 
| ChunkFactory.ChunkCreationResult | createChunk(Tile tile,
           int chunkX,
           int chunkZ) | 
| int | getMaxHeight()Get the height of the chunks this chunk factory will create. | 
| int | getMinHeight()Get the depth of the chunks this factory will create. | 
| boolean | isAdjacentWater(Tile tile,
               int height,
               int x,
               int y) | 
| void | renderObject(Chunk chunk,
            WPObject object,
            int x,
            int y,
            int z) | 
public static final long SUGAR_CANE_SEED_OFFSET
public static final float SUGAR_CANE_CHANCE
public WorldPainterChunkFactory(Dimension dimension, java.util.Map<Layer,LayerExporter> exporters, Platform platform, int maxHeightConstraint)
WorldPainterChunkFactory.dimension - The dimension for which the factory should create chunks.exporters - The phase one layer exporters the factory should apply to the created chunks.platform - The platform for which the dimension is being exported.maxHeightConstraint - The height to which to constrain the created chunks. May be lower than the
 maxHeight of the dimension, world or platform, e.g. for preview purposes.public int getMinHeight()
ChunkFactorygetMinHeight in interface ChunkFactorypublic int getMaxHeight()
ChunkFactorygetMaxHeight in interface ChunkFactorypublic ChunkFactory.ChunkCreationResult createChunk(int chunkX, int chunkZ)
ChunkFactorycreateChunk in interface ChunkFactorychunkX - The X coordinate in the Minecraft coordinate space of the chunk
     to generate.chunkZ - The Z coordinate in the Minecraft coordinate space of the chunk
     to generate.null if no chunk is present at
     the specified coordinates.public ChunkFactory.ChunkCreationResult createChunk(Tile tile, int chunkX, int chunkZ)
public void applyTopLayer(Tile tile, Chunk chunk, int xInTile, int yInTile, int minZ, boolean onlyWhereSolid)
public void applySubSurface(Tile tile, Chunk chunk, int xInTile, int yInTile, int minZ)
public boolean isAdjacentWater(Tile tile, int height, int x, int y)