public abstract class HeightMapChunkFactory extends java.lang.Object implements ChunkFactory
ChunkFactory.ChunkCreationResult, ChunkFactory.Stage, ChunkFactory.Stats| Modifier and Type | Field and Description |
|---|---|
protected int |
maxHeight |
protected int |
version |
| Constructor and Description |
|---|
HeightMapChunkFactory(int maxHeight,
int version) |
| Modifier and Type | Method and Description |
|---|---|
ChunkFactory.ChunkCreationResult |
createChunk(int chunkX,
int chunkZ)
Create the chunk at the specified location, if present.
|
protected abstract int |
getHeight(int x,
int z) |
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.
|
public int getMinHeight()
ChunkFactorygetMinHeight in interface ChunkFactorypublic final int getMaxHeight()
ChunkFactorygetMaxHeight in interface ChunkFactorypublic final 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.protected abstract int getHeight(int x,
int z)