Added convenience constructor.

This commit is contained in:
Harrison Deng 2020-04-25 00:18:29 -05:00
parent 34ccc1e7de
commit e93f61c055

View File

@ -19,6 +19,11 @@ class TemperatureMapGenerator {
temperatureCache = new Cache<>(1024);
}
public TemperatureMapGenerator(long seed) {
this();
setSeed(seed);
}
public void setSeed(long seed) {
noiseGenerator = new SimplexOctaveGenerator(new Random(seed), 2);
noiseGenerator.setScale(0.005D);