Class PerlinSimplexNoise
java.lang.Object
net.minecraft.world.level.levelgen.synth.PerlinSimplexNoise
This class generates multiple octaves of simplex noise. Each individual octave is an instance of
SimplexNoise.
Mojang uses the term 'Perlin' to describe octaves or fBm (Fractal Brownian Motion) noise and this class does not actually generate Perlin noise.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final doubleprivate final SimplexNoise[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePerlinSimplexNoise(RandomSource pRandom, it.unimi.dsi.fastutil.ints.IntSortedSet pOctaves) PerlinSimplexNoise(RandomSource pRandom, List<Integer> pOctaves) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetValue(double pX, double pY, boolean pUseNoiseOffsets)
-
Field Details
-
noiseLevels
-
highestFreqValueFactor
private final double highestFreqValueFactor -
highestFreqInputFactor
private final double highestFreqInputFactor
-
-
Constructor Details
-
PerlinSimplexNoise
-
PerlinSimplexNoise
-
-
Method Details
-
getValue
public double getValue(double pX, double pY, boolean pUseNoiseOffsets)
-