Class PerlinNoise

java.lang.Object
net.minecraft.world.level.levelgen.synth.PerlinNoise
All Implemented Interfaces:
SurfaceNoise

public class PerlinNoise extends Object implements SurfaceNoise
  • Field Details

    • ROUND_OFF

      private static final int ROUND_OFF
      See Also:
      Constant Field Values
    • noiseLevels

      private final ImprovedNoise[] noiseLevels
    • amplitudes

      private final it.unimi.dsi.fastutil.doubles.DoubleList amplitudes
    • lowestFreqValueFactor

      private final double lowestFreqValueFactor
    • lowestFreqInputFactor

      private final double lowestFreqInputFactor
  • Constructor Details

    • PerlinNoise

      public PerlinNoise(RandomSource p_164377_, IntStream p_164378_)
    • PerlinNoise

      public PerlinNoise(RandomSource p_164374_, List<Integer> p_164375_)
    • PerlinNoise

      private PerlinNoise(RandomSource p_164367_, it.unimi.dsi.fastutil.ints.IntSortedSet p_164368_)
    • 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

      public static PerlinNoise create(RandomSource p_164386_, int p_164387_, double... p_164388_)
    • 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

      private static void skipOctave(RandomSource p_164380_)
    • 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

      @Nullable public ImprovedNoise getOctaveNoise(int p_75425_)
    • 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 interface SurfaceNoise