Class PerlinNoise
java.lang.Object
net.minecraft.world.level.levelgen.synth.GradientNoise
net.minecraft.world.level.levelgen.synth.PerlinNoise
- All Implemented Interfaces:
Noise
- Direct Known Subclasses:
SmearedPerlinNoise
-
Nested Class Summary
Nested classes/interfaces inherited from class GradientNoise
GradientNoise.Gradient -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToVolume(DensityBuffer buffer, DensityVolume volume, double xzScale, double yScale, float amplitude) floatget(double x, double y) floatget(double _x, double _y, double _z) floatnoiseWithDerivative(double _x, double _y, double _z, float[] derivativeOut) voidrange()protected floatsampleAndLerp(int x, int y, int z, float relativeX, float relativeY, float relativeZ, float originalRelativeY) private floatsampleWithDerivative(int x, int y, int z, float xr, float yr, float zr, float[] derivativeOut) Methods inherited from class GradientNoise
gradDot, permute, permuteToGrad, wrap
-
Field Details
-
RANGE
-
STANDARD_DEVIATION
public static final double STANDARD_DEVIATION- See Also:
-
-
Constructor Details
-
PerlinNoise
-
-
Method Details
-
range
-
get
public float get(double x, double y) -
get
public float get(double _x, double _y, double _z) -
noiseWithDerivative
public float noiseWithDerivative(double _x, double _y, double _z, float[] derivativeOut) -
sampleAndLerp
protected float sampleAndLerp(int x, int y, int z, float relativeX, float relativeY, float relativeZ, float originalRelativeY) -
addToVolume
public void addToVolume(DensityBuffer buffer, DensityVolume volume, double xzScale, double yScale, float amplitude) -
sampleWithDerivative
private float sampleWithDerivative(int x, int y, int z, float xr, float yr, float zr, float[] derivativeOut) -
parityConfigString
-