API reference Obsidian.API.Noise
BlendedNoise class
Vanilla BlendedNoise (the minecraft:old_blended_noise density function): a main noise selects between two high-octave limit noises, giving pre-1.18 style terrain.
public sealed class BlendedNoise
In Obsidian.API.
Remarks
Instances from BlendedNoise.CreateUnseeded carry the configuration only; call BlendedNoise.WithNewRandom with the world's "minecraft:terrain" random before sampling, as vanilla does.
Constructors
BlendedNoise(IRandomSource, double, double, double, double, double)
public BlendedNoise(IRandomSource random, double xzScale, double yScale, double xzFactor, double yFactor, double smearScaleMultiplier);Creates a noise seeded from random. Prefer BlendedNoise.CreateUnseeded + BlendedNoise.WithNewRandom.
Properties
public double MaxValue { get; }public double MinValue { get; }Methods
public double Compute(int blockX, int blockY, int blockZ);CreateUnseeded(double, double, double, double, double)
public static BlendedNoise CreateUnseeded(double xzScale, double yScale, double xzFactor, double yFactor, double smearScaleMultiplier);Creates a placeholder instance seeded with new XoroshiroRandomSource(0), like vanilla's codec.
WithNewRandom(IRandomSource)
public BlendedNoise WithNewRandom(IRandomSource random);Returns a copy of this configuration seeded from random.