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 double
private final double
private final SimplexNoise[]
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PerlinSimplexNoise
(RandomSource random, it.unimi.dsi.fastutil.ints.IntSortedSet octaves) PerlinSimplexNoise
(RandomSource random, List<Integer> octaves) -
Method Summary
-
Field Details
-
noiseLevels
-
highestFreqValueFactor
private final double highestFreqValueFactor -
highestFreqInputFactor
private final double highestFreqInputFactor
-
-
Constructor Details
-
PerlinSimplexNoise
-
PerlinSimplexNoise
-
-
Method Details
-
getValue
public double getValue(double x, double y, boolean useNoiseOffsets)
-