Class NoiseChunkGenerator

    • Field Detail

      • BEARD_KERNEL

        private static final float[] BEARD_KERNEL
      • BIOME_WEIGHTS

        private static final float[] BIOME_WEIGHTS
      • chunkHeight

        private final int chunkHeight
      • chunkWidth

        private final int chunkWidth
      • chunkCountX

        private final int chunkCountX
      • chunkCountY

        private final int chunkCountY
      • chunkCountZ

        private final int chunkCountZ
      • defaultBlock

        protected final BlockState defaultBlock
      • defaultFluid

        protected final BlockState defaultFluid
      • seed

        private final long seed
      • height

        private final int height
    • Method Detail

      • sampleAndClampNoise

        private double sampleAndClampNoise​(int p_222552_1_,
                                           int p_222552_2_,
                                           int p_222552_3_,
                                           double p_222552_4_,
                                           double p_222552_6_,
                                           double p_222552_8_,
                                           double p_222552_10_)
      • makeAndFillNoiseColumn

        private double[] makeAndFillNoiseColumn​(int p_222547_1_,
                                                int p_222547_2_)
      • fillNoiseColumn

        private void fillNoiseColumn​(double[] p_222548_1_,
                                     int p_222548_2_,
                                     int p_222548_3_)
      • getRandomDensity

        private double getRandomDensity​(int p_236095_1_,
                                        int p_236095_2_)
      • iterateNoiseColumn

        private int iterateNoiseColumn​(int p_236087_1_,
                                       int p_236087_2_,
                                       @Nullable
                                       BlockState[] p_236087_3_,
                                       @Nullable
                                       java.util.function.Predicate<BlockState> p_236087_4_)
      • generateBaseState

        protected BlockState generateBaseState​(double p_236086_1_,
                                               int p_236086_3_)
      • setBedrock

        private void setBedrock​(IChunk p_222555_1_,
                                java.util.Random p_222555_2_)
      • getContribution

        private static double getContribution​(int p_222556_0_,
                                              int p_222556_1_,
                                              int p_222556_2_)
      • computeContribution

        private static double computeContribution​(int p_222554_0_,
                                                  int p_222554_1_,
                                                  int p_222554_2_)