9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-30 12:29:20 +00:00
This commit is contained in:
Dan Macbook
2020-08-13 07:04:50 -04:00
parent 93866dc466
commit 887d355dea
8 changed files with 72 additions and 26 deletions

View File

@@ -147,7 +147,7 @@ public class IrisBiomeDecorator {
xx /= getZoom();
zz /= getZoom();
if (getGenerator(rng).fitDoubleD(0D, 1D, xx, zz) <= chance) {
if (getGenerator(rng).fitDouble(0D, 1D, xx, zz) <= chance) {
if (getBlockData().size() == 1) {
return getBlockData().get(0);
}

View File

@@ -126,7 +126,7 @@ public class IrisNoiseGenerator
g += 819;
}
double n = getGenerator(superSeed).fitDoubleD(0, opacity, (x / zoom) + offsetX, (z / zoom) + offsetZ);
double n = getGenerator(superSeed).fitDouble(0, opacity, (x / zoom) + offsetX, (z / zoom) + offsetZ);
n = negative ? (-n + opacity) : n;
n = (exponent != 1 ? n < 0 ? -Math.pow(-n, exponent) : Math.pow(n, exponent) : n) + offsetY;
n = parametric ? IrisInterpolation.parametric(n, 1) : n;

View File

@@ -219,7 +219,7 @@ public class IrisRegion extends IrisRegistrant implements IRare
public double getShoreHeight(double x, double z)
{
return getShoreHeightGenerator().fitDoubleD(shoreHeightMin, shoreHeightMax, x / shoreHeightZoom, z / shoreHeightZoom);
return getShoreHeightGenerator().fitDouble(shoreHeightMin, shoreHeightMax, x / shoreHeightZoom, z / shoreHeightZoom);
}
public KList<IrisBiome> getAllBiomes(ContextualChunkGenerator g)

View File

@@ -130,7 +130,7 @@ public class IrisStructure extends IrisRegistrant
}
BlockPosition p = asTileHorizon(new BlockPosition((int) x, (int) y, (int) z), face);
return (getWallGenerator(rng).fitDoubleD(0, 1, p.getX(), p.getY(), p.getZ()) < getWallChance());
return (getWallGenerator(rng).fitDouble(0, 1, p.getX(), p.getY(), p.getZ()) < getWallChance());
}
public int getTileHorizon(double v)

View File

@@ -330,6 +330,6 @@ public enum NoiseStyle {
}
public CNG create(RNG seed) {
return f.create(seed);
return f.create(seed).bake();
}
}