Refactor.
This commit is contained in:
parent
e306d828e9
commit
e2c3e46849
@ -7,13 +7,13 @@ import org.bukkit.util.noise.SimplexOctaveGenerator;
|
|||||||
|
|
||||||
import ca.recrown.islandsurvivalcraft.world.IslandWorldBaseTerrainMap;
|
import ca.recrown.islandsurvivalcraft.world.IslandWorldBaseTerrainMap;
|
||||||
|
|
||||||
public class WorldShapeShader {
|
public class WorldHeightShader {
|
||||||
private Random random;
|
private Random random;
|
||||||
private SimplexOctaveGenerator noiseGenerator;
|
private SimplexOctaveGenerator noiseGenerator;
|
||||||
private IslandWorldBaseTerrainMap islandLocator;
|
private IslandWorldBaseTerrainMap islandLocator;
|
||||||
private final float probabilityOfAdditive = 0.75f;
|
private final float probabilityOfAdditive = 0.75f;
|
||||||
|
|
||||||
public WorldShapeShader(long seed, IslandWorldBaseTerrainMap islandLocator) {
|
public WorldHeightShader(long seed, IslandWorldBaseTerrainMap islandLocator) {
|
||||||
random = new Random(seed);
|
random = new Random(seed);
|
||||||
noiseGenerator = new SimplexOctaveGenerator(random, 2);
|
noiseGenerator = new SimplexOctaveGenerator(random, 2);
|
||||||
noiseGenerator.setScale(0.05D);
|
noiseGenerator.setScale(0.05D);
|
Loading…
Reference in New Issue
Block a user