API reference / @jsprismarine/worldgen / NoiseStack
Class: NoiseStack
Defined in: noise/NoiseStack.ts:21
A weighted sum of octaves.
26.3 replaced the old PerlinNoise octave list with this flat stack, so a normal noise, the three fractal Brownian motion sets of old blended noise, and the legacy nether noises all share one summation path.
Implements
Constructors
Constructor
new NoiseStack(
layers):NoiseStack
Defined in: noise/NoiseStack.ts:22
Parameters
layers
readonly NoiseLayer[]
The octaves, summed in order; float rounding makes the order observable.
Returns
NoiseStack
Properties
layers
readonlylayers: readonlyNoiseLayer[]
Defined in: noise/NoiseStack.ts:24
The octaves, summed in order; float rounding makes the order observable.
Methods
get2()
get2(
x,z):number
Defined in: noise/NoiseStack.ts:41
Samples at a 2D position, which Java treats as y = 0.
Parameters
x
number
z
number
Returns
number
Implementation of
get3()
get3(
x,y,z):number
Defined in: noise/NoiseStack.ts:28
Samples at a 3D position.
Parameters
x
number
y
number
z
number
Returns
number