Class BlendedNoise
java.lang.Object
net.minecraft.world.level.levelgen.synth.BlendedNoise
- All Implemented Interfaces:
DensityFunction
,DensityFunction.SimpleFunction
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.levelgen.DensityFunction
DensityFunction.ContextProvider, DensityFunction.FunctionContext, DensityFunction.NoiseHolder, DensityFunction.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.Visitor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final KeyDispatchDataCodec<BlendedNoise>
private static final com.mojang.serialization.MapCodec<BlendedNoise>
private final PerlinNoise
private final PerlinNoise
private final double
private final PerlinNoise
private static final com.mojang.serialization.Codec<Double>
private final double
private final double
private final double
private final double
private final double
private final double
private final double
Fields inherited from interface net.minecraft.world.level.levelgen.DensityFunction
DIRECT_CODEC, HOLDER_HELPER_CODEC
-
Constructor Summary
ModifierConstructorDescriptionBlendedNoise
(RandomSource p_230462_, double p_230463_, double p_230464_, double p_230465_, double p_230466_, double p_230467_) private
BlendedNoise
(PerlinNoise p_230469_, PerlinNoise p_230470_, PerlinNoise p_230471_, double p_230472_, double p_230473_, double p_230474_, double p_230475_, double p_230476_) -
Method Summary
Modifier and TypeMethodDescriptionKeyDispatchDataCodec<? extends DensityFunction>
codec()
double
compute
(DensityFunction.FunctionContext p_210621_) static BlendedNoise
createUnseeded
(double p_230478_, double p_230479_, double p_230480_, double p_230481_, double p_230482_) double
maxValue()
double
minValue()
void
parityConfigString
(StringBuilder p_192818_) withNewRandom
(RandomSource p_230484_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.levelgen.DensityFunction
abs, clamp, cube, halfNegative, quarterNegative, square, squeeze
Methods inherited from interface net.minecraft.world.level.levelgen.DensityFunction.SimpleFunction
fillArray, mapAll
-
Field Details
-
SCALE_RANGE
-
DATA_CODEC
-
CODEC
-
minLimitNoise
-
maxLimitNoise
-
mainNoise
-
xzMultiplier
private final double xzMultiplier -
yMultiplier
private final double yMultiplier -
xzFactor
private final double xzFactor -
yFactor
private final double yFactor -
smearScaleMultiplier
private final double smearScaleMultiplier -
maxValue
private final double maxValue -
xzScale
private final double xzScale -
yScale
private final double yScale
-
-
Constructor Details
-
BlendedNoise
private BlendedNoise(PerlinNoise p_230469_, PerlinNoise p_230470_, PerlinNoise p_230471_, double p_230472_, double p_230473_, double p_230474_, double p_230475_, double p_230476_) -
BlendedNoise
public BlendedNoise(RandomSource p_230462_, double p_230463_, double p_230464_, double p_230465_, double p_230466_, double p_230467_)
-
-
Method Details
-
createUnseeded
public static BlendedNoise createUnseeded(double p_230478_, double p_230479_, double p_230480_, double p_230481_, double p_230482_) -
withNewRandom
-
compute
- Specified by:
compute
in interfaceDensityFunction
-
minValue
public double minValue()- Specified by:
minValue
in interfaceDensityFunction
-
maxValue
public double maxValue()- Specified by:
maxValue
in interfaceDensityFunction
-
parityConfigString
-
codec
- Specified by:
codec
in interfaceDensityFunction
-