Interface NoiseFunction
- All Superinterfaces:
DensityFunction, Keyed, NoiseParameterFunction, Registerable<NoiseParameterFunction>, Wrapper
- All Known Subinterfaces:
MappedNoiseFunction
Samples noise after optionally shifting each input coordinate.
- Since:
- 3.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe shared base forNoiseFunctionbuilders.static final classBuilder forNoiseFunction. -
Method Summary
Modifier and TypeMethodDescriptionstatic NoiseFunction.Builderbuilder()Creates a new builder.static NoiseFunctionof(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, double xzScale, double yScale) Creates a new noise function.static NoiseFunctionof(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, double xzScale, double yScale, DensityFunction shiftX, DensityFunction shiftY, DensityFunction shiftZ) Creates a new noise function with coordinate shifts.static NoiseFunctionof(NoiseParameters noiseParameters, double xzScale, double yScale) Creates a new noise function.shiftX()The density function added to the X coordinate before sampling.shiftY()The density function added to the Y coordinate before sampling.shiftZ()The density function added to the Z coordinate before sampling.default NoiseFunction.AbstractBuilder<?> Converts this object back to a builder.doublexzScale()The xz scale of the noise function.doubleyScale()The y scale of the noise function.Methods inherited from interface DensityFunction
abs, add, blendDensity, cache2d, cacheAllInCell, cacheOnce, clamp, cube, findTopSurface, flatCache, halfNegative, interpolated, invert, max, min, mul, quarterNegative, rangeChoice, resourceKey, square, squeeze, wrapMethods inherited from interface NoiseParameterFunction
noiseParametersMethods inherited from interface Registerable
registerMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
xzScale
The xz scale of the noise function.- Returns:
- the xz scale
- Since:
- 3.0.0
-
yScale
-
shiftX
The density function added to the X coordinate before sampling.- Returns:
- the X-coordinate shift
- Since:
- 4.0.0
-
shiftY
The density function added to the Y coordinate before sampling.- Returns:
- the Y-coordinate shift
- Since:
- 4.0.0
-
shiftZ
The density function added to the Z coordinate before sampling.- Returns:
- the Z-coordinate shift
- Since:
- 4.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static NoiseFunction of(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, double xzScale, double yScale) Creates a new noise function.- Parameters:
resourceKey- the resource key, or nullnoiseParameters- the parameters of the noisexzScale- the xz scale of the noise functionyScale- the y scale of the noise function- Returns:
- a new noise function
- Since:
- 3.0.0
-
of
@AsOf("4.0.0") static NoiseFunction of(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, double xzScale, double yScale, DensityFunction shiftX, DensityFunction shiftY, DensityFunction shiftZ) Creates a new noise function with coordinate shifts.- Parameters:
resourceKey- the resource key, or nullnoiseParameters- the parameters of the noisexzScale- the X and Z scaleyScale- the Y scaleshiftX- the X-coordinate shiftshiftY- the Y-coordinate shiftshiftZ- the Z-coordinate shift- Returns:
- a new noise function
- Since:
- 4.0.0
-
of
@AsOf("3.0.0") static NoiseFunction of(NoiseParameters noiseParameters, double xzScale, double yScale) Creates a new noise function.- Parameters:
noiseParameters- the parameters of the noisexzScale- the xz scale of the noise functionyScale- the y scale of the noise function- Returns:
- a new noise function
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-