Class Cavifier

java.lang.Object
net.minecraft.world.level.levelgen.Cavifier
All Implemented Interfaces:
NoiseModifier

public class Cavifier extends Object implements NoiseModifier
  • Field Details

    • minCellY

      private final int minCellY
    • layerNoiseSource

      private final NormalNoise layerNoiseSource
    • pillarNoiseSource

      private final NormalNoise pillarNoiseSource
    • pillarRarenessModulator

      private final NormalNoise pillarRarenessModulator
    • pillarThicknessModulator

      private final NormalNoise pillarThicknessModulator
    • spaghetti2dNoiseSource

      private final NormalNoise spaghetti2dNoiseSource
    • spaghetti2dElevationModulator

      private final NormalNoise spaghetti2dElevationModulator
    • spaghetti2dRarityModulator

      private final NormalNoise spaghetti2dRarityModulator
    • spaghetti2dThicknessModulator

      private final NormalNoise spaghetti2dThicknessModulator
    • spaghetti3dNoiseSource1

      private final NormalNoise spaghetti3dNoiseSource1
    • spaghetti3dNoiseSource2

      private final NormalNoise spaghetti3dNoiseSource2
    • spaghetti3dRarityModulator

      private final NormalNoise spaghetti3dRarityModulator
    • spaghetti3dThicknessModulator

      private final NormalNoise spaghetti3dThicknessModulator
    • spaghettiRoughnessNoise

      private final NormalNoise spaghettiRoughnessNoise
    • spaghettiRoughnessModulator

      private final NormalNoise spaghettiRoughnessModulator
    • caveEntranceNoiseSource

      private final NormalNoise caveEntranceNoiseSource
    • cheeseNoiseSource

      private final NormalNoise cheeseNoiseSource
    • CHEESE_NOISE_RANGE

      private static final int CHEESE_NOISE_RANGE
      See Also:
      Constant Field Values
    • SURFACE_DENSITY_THRESHOLD

      private static final int SURFACE_DENSITY_THRESHOLD
      See Also:
      Constant Field Values
  • Constructor Details

    • Cavifier

      public Cavifier(RandomSource p_158115_, int p_158116_)
  • Method Details

    • modifyNoise

      public double modifyNoise(double p_158151_, int p_158152_, int p_158153_, int p_158154_)
      Specified by:
      modifyNoise in interface NoiseModifier
    • addEntrances

      private double addEntrances(double p_158120_, int p_158121_, int p_158122_, int p_158123_)
    • getPillars

      private double getPillars(int p_158125_, int p_158126_, int p_158127_)
    • getLayerizedCaverns

      private double getLayerizedCaverns(int p_158135_, int p_158136_, int p_158137_)
    • getSpaghetti3d

      private double getSpaghetti3d(int p_158139_, int p_158140_, int p_158141_)
    • getSpaghetti2d

      private double getSpaghetti2d(int p_158143_, int p_158144_, int p_158145_)
    • spaghettiRoughness

      private double spaghettiRoughness(int p_158147_, int p_158148_, int p_158149_)
    • clampToUnit

      private static double clampToUnit(double p_158118_)
    • sampleWithRarity

      private static double sampleWithRarity(NormalNoise p_158129_, double p_158130_, double p_158131_, double p_158132_, double p_158133_)