Refactor.

This commit is contained in:
Harrison Deng 2020-04-21 19:32:54 -05:00
parent e306d828e9
commit e2c3e46849

View File

@ -7,13 +7,13 @@ import org.bukkit.util.noise.SimplexOctaveGenerator;
import ca.recrown.islandsurvivalcraft.world.IslandWorldBaseTerrainMap;
public class WorldShapeShader {
public class WorldHeightShader {
private Random random;
private SimplexOctaveGenerator noiseGenerator;
private IslandWorldBaseTerrainMap islandLocator;
private final float probabilityOfAdditive = 0.75f;
public WorldShapeShader(long seed, IslandWorldBaseTerrainMap islandLocator) {
public WorldHeightShader(long seed, IslandWorldBaseTerrainMap islandLocator) {
random = new Random(seed);
noiseGenerator = new SimplexOctaveGenerator(random, 2);
noiseGenerator.setScale(0.05D);