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()
ChunkFactory
getMinHeight
in interface ChunkFactory
public final int getMaxHeight()
ChunkFactory
getMaxHeight
in interface ChunkFactory
public final ChunkFactory.ChunkCreationResult createChunk(int chunkX, int chunkZ)
ChunkFactory
createChunk
in interface ChunkFactory
chunkX
- 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)