public abstract class FeatureGenerator extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
FeatureGenerator.ChunkManipulator
Provides special functionality for chunk manipulation
|
Modifier and Type | Field and Description |
---|---|
protected long |
seed |
Constructor and Description |
---|
FeatureGenerator(long seed) |
Modifier and Type | Method and Description |
---|---|
abstract void |
generate(ChunkLocation location,
int relX,
int relZ,
GeneratorRandom random,
AtomicReferenceArray<Integer> heights,
FeatureGenerator.ChunkManipulator manipulator)
Brushes the terrain
|
long |
seed()
Obtains the chunk generation seed
|
protected final long seed
public FeatureGenerator(long seed)
public long seed()
public abstract void generate(ChunkLocation location, int relX, int relZ, GeneratorRandom random, AtomicReferenceArray<Integer> heights, FeatureGenerator.ChunkManipulator manipulator)
location
- the location of the chunk to generaterelX
- the relative chunk X of the chunkrelZ
- the relative Zrandom
- the generator randomheights
- the height array to editmanipulator
- the tool used to set block types in the chunk and to cross
chunk boundaries if neededCopyright © 2016. All rights reserved.