Interface NoiseFunction
- All Superinterfaces:
DensityFunction, Keyed, NoiseParameterFunction, Registerable<NoiseParameterFunction>, Wrapper
- All Known Subinterfaces:
MappedNoiseFunction
Samples a noise.
- 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(NoiseParameters noiseParameters, double xzScale, double yScale) Creates a new noise function.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
-
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("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
-