Added convenience constructor.
This commit is contained in:
parent
34ccc1e7de
commit
e93f61c055
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user