Class PerlinNoise
java.lang.Object
net.minecraft.world.level.levelgen.synth.PerlinNoise
- All Implemented Interfaces:
SurfaceNoise
-
Field Summary
Modifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.doubles.DoubleList
private double
private double
private ImprovedNoise[]
private static int
-
Constructor Summary
ModifierConstructorDescriptionprotected
PerlinNoise(RandomSource p_164360_, com.mojang.datafixers.util.Pair<Integer,it.unimi.dsi.fastutil.doubles.DoubleList> p_164361_)
protected
PerlinNoise(RandomSource p_164363_, com.mojang.datafixers.util.Pair<Integer,it.unimi.dsi.fastutil.doubles.DoubleList> p_164364_, LongFunction<RandomSource> p_164365_)
private
PerlinNoise(RandomSource p_164367_, it.unimi.dsi.fastutil.ints.IntSortedSet p_164368_)
private
PerlinNoise(RandomSource p_164370_, it.unimi.dsi.fastutil.ints.IntSortedSet p_164371_, LongFunction<RandomSource> p_164372_)
PerlinNoise(RandomSource p_164374_, List<Integer> p_164375_)
PerlinNoise(RandomSource p_164377_, IntStream p_164378_)
-
Method Summary
Modifier and TypeMethodDescriptionstatic PerlinNoise
create(RandomSource p_164386_, int p_164387_, double... p_164388_)
static PerlinNoise
create(RandomSource p_164382_, int p_164383_, it.unimi.dsi.fastutil.doubles.DoubleList p_164384_)
getOctaveNoise(int p_75425_)
double
getSurfaceNoiseValue(double p_75413_, double p_75414_, double p_75415_, double p_75416_)
double
getValue(double p_75409_, double p_75410_, double p_75411_)
double
getValue(double p_75418_, double p_75419_, double p_75420_, double p_75421_, double p_75422_, boolean p_75423_)
Deprecated.private static com.mojang.datafixers.util.Pair<Integer,it.unimi.dsi.fastutil.doubles.DoubleList>
makeAmplitudes(it.unimi.dsi.fastutil.ints.IntSortedSet p_75431_)
private static void
skipOctave(RandomSource p_164380_)
static double
wrap(double p_75407_)
-
Field Details
-
ROUND_OFF
private static final int ROUND_OFF- See Also:
- Constant Field Values
-
noiseLevels
-
amplitudes
private final it.unimi.dsi.fastutil.doubles.DoubleList amplitudes -
lowestFreqValueFactor
private final double lowestFreqValueFactor -
lowestFreqInputFactor
private final double lowestFreqInputFactor
-
-
Constructor Details
-
PerlinNoise
-
PerlinNoise
-
PerlinNoise
-
PerlinNoise
private PerlinNoise(RandomSource p_164370_, it.unimi.dsi.fastutil.ints.IntSortedSet p_164371_, LongFunction<RandomSource> p_164372_) -
PerlinNoise
protected PerlinNoise(RandomSource p_164360_, com.mojang.datafixers.util.Pair<Integer,it.unimi.dsi.fastutil.doubles.DoubleList> p_164361_) -
PerlinNoise
protected PerlinNoise(RandomSource p_164363_, com.mojang.datafixers.util.Pair<Integer,it.unimi.dsi.fastutil.doubles.DoubleList> p_164364_, LongFunction<RandomSource> p_164365_)
-
-
Method Details
-
create
-
create
public static PerlinNoise create(RandomSource p_164382_, int p_164383_, it.unimi.dsi.fastutil.doubles.DoubleList p_164384_) -
makeAmplitudes
private static com.mojang.datafixers.util.Pair<Integer,it.unimi.dsi.fastutil.doubles.DoubleList> makeAmplitudes(it.unimi.dsi.fastutil.ints.IntSortedSet p_75431_) -
skipOctave
-
getValue
public double getValue(double p_75409_, double p_75410_, double p_75411_) -
getValue
@Deprecated public double getValue(double p_75418_, double p_75419_, double p_75420_, double p_75421_, double p_75422_, boolean p_75423_)Deprecated. -
getOctaveNoise
-
wrap
public static double wrap(double p_75407_) -
getSurfaceNoiseValue
public double getSurfaceNoiseValue(double p_75413_, double p_75414_, double p_75415_, double p_75416_)- Specified by:
getSurfaceNoiseValue
in interfaceSurfaceNoise
-