public abstract class ChunkGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
seed |
Constructor and Description |
---|
ChunkGenerator(long seed) |
Modifier and Type | Method and Description |
---|---|
abstract char[][] |
generateBlocks(ChunkLocation position,
AtomicReferenceArray<Integer> heights)
Populates the block ids for a chunk
|
abstract byte[][] |
generateData(ChunkLocation position)
Populates block data for a chunk
|
long |
seed()
Obtains the chunk generation seed
|
protected final long seed
public ChunkGenerator(long seed)
public long seed()
public abstract char[][] generateBlocks(ChunkLocation position, AtomicReferenceArray<Integer> heights)
The first array index is the section number, the second index is the position in that section, i.e. x << 8 + y << 4 + z
Should only be invoked by TridentChunk
position
- the position of the chunk to be generatedheights
- the array of max heightspublic abstract byte[][] generateData(ChunkLocation position)
position
- the position of the chunk to be generatedCopyright © 2016. All rights reserved.