Class GradientNoise

java.lang.Object
net.minecraft.world.level.levelgen.synth.GradientNoise
All Implemented Interfaces:
Noise
Direct Known Subclasses:
PerlinNoise, SimplexNoise

public abstract class GradientNoise extends Object implements Noise
  • Field Details

    • GRADIENT

      protected static final GradientNoise.Gradient[] GRADIENT
    • ROUND_OFF

      private static final int ROUND_OFF
      See Also:
    • HALF_ROUND_OFF

      private static final double HALF_ROUND_OFF
    • perms

      protected final byte[] perms
    • offsetX

      protected final double offsetX
    • offsetY

      protected final double offsetY
    • offsetZ

      protected final double offsetZ
  • Constructor Details

    • GradientNoise

      protected GradientNoise(RandomSource random)
    • GradientNoise

      protected GradientNoise(RandomSource random, double noiseOffsetScale)
  • Method Details

    • permute

      protected int permute(int x)
    • permuteToGrad

      protected GradientNoise.Gradient permuteToGrad(int x)
    • gradDot

      protected static float gradDot(int hash, float x, float y, float z)
    • wrap

      protected static double wrap(double x)