Package com.ardorcraft.generators
Interface DataGenerator
- All Known Implementing Classes:
DefaultDataGenerator
,InterpolatedNoiseDataGenerator
,LayerDataGenerator
,NiceDataGenerator
public interface DataGenerator
A DataGenerator is responsible for generating the terrain in the world. It HAS to be thread safe!
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generateChunk
(int xStart, int zStart, int xEnd, int zEnd, int spacing, int height, WorldModifier proxy) Method to implement for custom terrain generation.
-
Method Details
-
generateChunk
void generateChunk(int xStart, int zStart, int xEnd, int zEnd, int spacing, int height, WorldModifier proxy) Method to implement for custom terrain generation.- Parameters:
xStart
- Starting point of generation in XzStart
- Starting point of generation in ZZxEnd
- Ending point of generation in XzEnd
- Ending point of generation in Zspacing
- Space between sample data points (for faster zoom outs in map viewers etc)height
- Height of data to generate in Yproxy
- WorldModifier to build the world against (setBlock etc).
-