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 p_230543_, it.unimi.dsi.fastutil.ints.IntSortedSet p_230544_) PerlinSimplexNoise
(RandomSource pRandom, List<Integer> pOctaves) -
Method Summary
Modifier and TypeMethodDescriptiondouble
getValue
(double pX, double pY, boolean pUseNoiseOffsets)
-
Field Details
-
noiseLevels
-
highestFreqValueFactor
private final double highestFreqValueFactor -
highestFreqInputFactor
private final double highestFreqInputFactor
-
-
Constructor Details
-
PerlinSimplexNoise
-
PerlinSimplexNoise
private PerlinSimplexNoise(RandomSource p_230543_, it.unimi.dsi.fastutil.ints.IntSortedSet p_230544_)
-
-
Method Details
-
getValue
public double getValue(double pX, double pY, boolean pUseNoiseOffsets)
-