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.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.Visitor
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
static final com.mojang.serialization.Codec<BlendedNoise>
private final PerlinNoise
private final PerlinNoise
private final double
private final PerlinNoise
static final BlendedNoise
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_192806_, NoiseSamplingSettings p_192807_, int p_192808_, int p_192809_) private
BlendedNoise
(PerlinNoise p_192811_, PerlinNoise p_192812_, PerlinNoise p_192813_, NoiseSamplingSettings p_192814_, int p_192815_, int p_192816_) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends DensityFunction>
codec()
double
compute
(DensityFunction.FunctionContext p_210621_) double
maxValue()
double
minValue()
void
parityConfigString
(StringBuilder p_192818_) 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
-
UNSEEDED
-
CODEC
-
minLimitNoise
-
maxLimitNoise
-
mainNoise
-
xzScale
private final double xzScale -
yScale
private final double yScale -
xzMainScale
private final double xzMainScale -
yMainScale
private final double yMainScale -
cellWidth
private final int cellWidth -
cellHeight
private final int cellHeight -
maxValue
private final double maxValue
-
-
Constructor Details
-
BlendedNoise
private BlendedNoise(PerlinNoise p_192811_, PerlinNoise p_192812_, PerlinNoise p_192813_, NoiseSamplingSettings p_192814_, int p_192815_, int p_192816_) -
BlendedNoise
public BlendedNoise(RandomSource p_192806_, NoiseSamplingSettings p_192807_, int p_192808_, int p_192809_)
-
-
Method Details
-
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
-