Class GradientNoise
java.lang.Object
net.minecraft.world.level.levelgen.synth.GradientNoise
- All Implemented Interfaces:
Noise
- Direct Known Subclasses:
PerlinNoise, SimplexNoise
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final GradientNoise.Gradient[]private static final doubleprotected final doubleprotected final doubleprotected final doubleprotected final byte[]private static final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGradientNoise(RandomSource random) protectedGradientNoise(RandomSource random, double noiseOffsetScale) -
Method Summary
Modifier and TypeMethodDescriptionprotected static floatgradDot(int hash, float x, float y, float z) protected intpermute(int x) protected GradientNoise.GradientpermuteToGrad(int x) protected static doublewrap(double x) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Noise
addToVolume, get, get, range
-
Field Details
-
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
-
GradientNoise
-
-
Method Details
-
permute
protected int permute(int x) -
permuteToGrad
-
gradDot
protected static float gradDot(int hash, float x, float y, float z) -
wrap
protected static double wrap(double x)
-