Skip to content

API reference Obsidian.API.Noise

NormalNoise class

Vanilla NormalNoise: the sum of two PerlinNoise instances (the second sampled at a slightly larger scale), normalized so the result has a deviation of about 1/3. This is what worldgen/noise definitions (firstOctave + amplitudes) instantiate.

public sealed class NormalNoise

In Obsidian.API.

Properties

MaxValue

public double MaxValue { get; }

Upper bound of NormalNoise.GetValue.

Methods

Create(IRandomSource, int, ReadOnlySpan<double>)

public static NormalNoise Create(IRandomSource random, int firstOctave, ReadOnlySpan<double> amplitudes);

Creates a noise with modern (positional) octave seeding. Consumes 4 longs from random.

CreateLegacyNetherBiome(IRandomSource, int, ReadOnlySpan<double>)

public static NormalNoise CreateLegacyNetherBiome(IRandomSource random, int firstOctave, ReadOnlySpan<double> amplitudes);

Creates a noise with legacy octave seeding, as used by the legacy nether biome source.

public double GetValue(double x, double y, double z);

On this page