Class PerlinNoise
java.lang.Object
net.minecraft.world.level.levelgen.synth.PerlinNoise
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.doubles.DoubleList
private final int
private final double
private final double
private final double
private final ImprovedNoise[]
private static final int
-
Constructor Summary
ModifierConstructorDescriptionprotected
PerlinNoise
(RandomSource p_192869_, com.mojang.datafixers.util.Pair<Integer, it.unimi.dsi.fastutil.doubles.DoubleList> p_192870_, boolean p_192871_) -
Method Summary
Modifier and TypeMethodDescriptionprotected it.unimi.dsi.fastutil.doubles.DoubleList
static PerlinNoise
create
(RandomSource p_192874_, int p_192875_, double p_192876_, double... p_192877_) static PerlinNoise
create
(RandomSource p_164382_, int p_164383_, it.unimi.dsi.fastutil.doubles.DoubleList p_164384_) static PerlinNoise
create
(RandomSource p_192883_, List<Integer> p_192884_) static PerlinNoise
create
(RandomSource p_192894_, IntStream p_192895_) static PerlinNoise
createLegacyForBlendedNoise
(RandomSource p_192886_, IntStream p_192887_) Deprecated.static PerlinNoise
createLegacyForLegacyNetherBiome
(RandomSource p_210646_, int p_210647_, it.unimi.dsi.fastutil.doubles.DoubleList p_210648_) Deprecated.private double
edgeValue
(double p_210650_) protected int
getOctaveNoise
(int p_75425_) 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_) double
maxBrokenValue
(double p_210644_) protected double
maxValue()
void
parityConfigString
(StringBuilder p_192891_) 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:
-
noiseLevels
-
firstOctave
private final int firstOctave -
amplitudes
private final it.unimi.dsi.fastutil.doubles.DoubleList amplitudes -
lowestFreqValueFactor
private final double lowestFreqValueFactor -
lowestFreqInputFactor
private final double lowestFreqInputFactor -
maxValue
private final double maxValue
-
-
Constructor Details
-
PerlinNoise
protected PerlinNoise(RandomSource p_192869_, com.mojang.datafixers.util.Pair<Integer, it.unimi.dsi.fastutil.doubles.DoubleList> p_192870_, boolean p_192871_)
-
-
Method Details
-
createLegacyForBlendedNoise
@Deprecated public static PerlinNoise createLegacyForBlendedNoise(RandomSource p_192886_, IntStream p_192887_) Deprecated. -
createLegacyForLegacyNetherBiome
@Deprecated public static PerlinNoise createLegacyForLegacyNetherBiome(RandomSource p_210646_, int p_210647_, it.unimi.dsi.fastutil.doubles.DoubleList p_210648_) Deprecated. -
create
-
create
-
create
public static PerlinNoise create(RandomSource p_192874_, int p_192875_, double p_192876_, double... p_192877_) -
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_) -
maxValue
protected double maxValue() -
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. -
maxBrokenValue
public double maxBrokenValue(double p_210644_) -
edgeValue
private double edgeValue(double p_210650_) -
getOctaveNoise
-
wrap
public static double wrap(double p_75407_) -
firstOctave
protected int firstOctave() -
amplitudes
protected it.unimi.dsi.fastutil.doubles.DoubleList amplitudes() -
parityConfigString
-