public class FlatWorldGen extends ChunkGenerator
seed
Constructor and Description |
---|
FlatWorldGen(long seed) |
Modifier and Type | Method and Description |
---|---|
char[][] |
generateBlocks(ChunkLocation location,
AtomicReferenceArray<Integer> heights)
Populates the block ids for a chunk
|
byte[][] |
generateData(ChunkLocation location)
Populates block data for a chunk
|
seed
public FlatWorldGen(long seed)
public char[][] generateBlocks(ChunkLocation location, AtomicReferenceArray<Integer> heights)
ChunkGenerator
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
generateBlocks
in class ChunkGenerator
location
- the position of the chunk to be generatedheights
- the array of max heightspublic byte[][] generateData(ChunkLocation location)
ChunkGenerator
generateData
in class ChunkGenerator
location
- the position of the chunk to be generatedCopyright © 2016. All rights reserved.