Class NoiseUtils
java.lang.Object
net.minecraft.world.level.levelgen.synth.NoiseUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
biasTowardsExtreme
(double pValue, double pBias) Takes an input value and biases it using a sine function towards two larger magnitude values.static void
parityNoiseOctaveConfigString
(StringBuilder pBuilder, double pXo, double pYo, double pZo, byte[] pP) static void
parityNoiseOctaveConfigString
(StringBuilder pBuilder, double pXo, double pYo, double pZo, int[] pP)
-
Constructor Details
-
NoiseUtils
public NoiseUtils()
-
-
Method Details
-
biasTowardsExtreme
public static double biasTowardsExtreme(double pValue, double pBias) Takes an input value and biases it using a sine function towards two larger magnitude values.- Parameters:
pValue
- A value in the range [-1, 1]pBias
- The effect of the bias. At0.0
, there will be no bias. Mojang only uses1.0
here.
-
parityNoiseOctaveConfigString
public static void parityNoiseOctaveConfigString(StringBuilder pBuilder, double pXo, double pYo, double pZo, byte[] pP) -
parityNoiseOctaveConfigString
public static void parityNoiseOctaveConfigString(StringBuilder pBuilder, double pXo, double pYo, double pZo, int[] pP)
-