mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-30 12:29:20 +00:00
CNG Bakn
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -330,6 +330,6 @@ public enum NoiseStyle {
|
||||
}
|
||||
|
||||
public CNG create(RNG seed) {
|
||||
return f.create(seed);
|
||||
return f.create(seed).bake();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user