mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-14 04:41:13 +00:00
cleanup biomegrids
This commit is contained in:
@@ -12,8 +12,8 @@ import com.dfsek.terra.debug.Debug;
|
||||
public abstract class TerraBiomeGrid extends BiomeGrid {
|
||||
protected final BiomeZone zone;
|
||||
|
||||
public TerraBiomeGrid(long seed, double freq1, double freq2, int sizeX, int sizeZ, BiomeZone zone) {
|
||||
super(seed, freq1, freq2, sizeX, sizeZ);
|
||||
public TerraBiomeGrid(long seed, int sizeX, int sizeZ, BiomeZone zone) {
|
||||
super(seed, 0, 0, sizeX, sizeZ);
|
||||
this.zone = zone;
|
||||
}
|
||||
|
||||
@@ -64,8 +64,8 @@ public abstract class TerraBiomeGrid extends BiomeGrid {
|
||||
|
||||
if(template.getGridType().equals(TerraBiomeGrid.Type.RADIAL)) {
|
||||
BiomeGrid internal = config.getBiomeGrid(template.getRadialInternalGrid()).build(seed, config);
|
||||
return new TerraRadialBiomeGrid(seed, template.getGridFreqX(), template.getGridFreqZ(), zone, config, template.getRadialGridRadius(), internal);
|
||||
} else return new TerraStandardBiomeGrid(seed, template.getGridFreqX(), template.getGridFreqZ(), zone, config);
|
||||
return new TerraRadialBiomeGrid(seed, zone, config, template.getRadialGridRadius(), internal);
|
||||
} else return new TerraStandardBiomeGrid(seed, zone, config);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,8 +20,8 @@ public class TerraRadialBiomeGrid extends TerraBiomeGrid {
|
||||
private CoordinatePerturb perturb;
|
||||
private ErosionNoise erode;
|
||||
|
||||
public TerraRadialBiomeGrid(long seed, double freq1, double freq2, BiomeZone zone, ConfigPack c, double radius, BiomeGrid internal) {
|
||||
super(seed, freq1, freq2, 0, 0, zone);
|
||||
public TerraRadialBiomeGrid(long seed, BiomeZone zone, ConfigPack c, double radius, BiomeGrid internal) {
|
||||
super(seed, 0, 0, zone);
|
||||
ConfigPackTemplate t = c.getTemplate();
|
||||
if(c.getTemplate().isBlend()) {
|
||||
perturb = new CoordinatePerturb(t.getBlendFreq(), t.getBlendAmp(), seed);
|
||||
|
||||
@@ -16,8 +16,8 @@ public class TerraStandardBiomeGrid extends TerraBiomeGrid {
|
||||
private CoordinatePerturb perturb;
|
||||
private ErosionNoise erode;
|
||||
|
||||
public TerraStandardBiomeGrid(long seed, double freq1, double freq2, BiomeZone zone, ConfigPack c) {
|
||||
super(seed, freq1, freq2, 0, 0, zone);
|
||||
public TerraStandardBiomeGrid(long seed, BiomeZone zone, ConfigPack c) {
|
||||
super(seed, 0, 0, zone);
|
||||
ConfigPackTemplate t = c.getTemplate();
|
||||
if(c.getTemplate().isBlend()) {
|
||||
perturb = new CoordinatePerturb(t.getBlendFreq(), t.getBlendAmp(), seed);
|
||||
|
||||
Reference in New Issue
Block a user