Interface MappedNoiseFunction
- All Superinterfaces:
DensityFunction, Keyed, NoiseFunction, NoiseParameterFunction, Registerable<NoiseParameterFunction>, Wrapper
A noise function that maps the output of another noise function to a range, probably.
- Since:
- 3.0.0
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface NoiseFunction
NoiseFunction.AbstractBuilder<B> -
Method Summary
Modifier and TypeMethodDescriptionstatic MappedNoiseFunction.Builderbuilder()Creates a new builder.doubleThe maximum target.doubleThe minimum target.static MappedNoiseFunctionof(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, double xzScale, double yScale, double minTarget, double maxTarget) Creates a new mapped noise function.static MappedNoiseFunctionof(NoiseParameters noiseParameters, double xzScale, double yScale, double minTarget, double maxTarget) Creates a new mapped noise function.default MappedNoiseFunction.BuilderConverts this object back to a builder.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 NoiseFunction
xzScale, yScaleMethods inherited from interface NoiseParameterFunction
noiseParametersMethods inherited from interface Registerable
registerMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
minTarget
-
maxTarget
-
toBuilder
Converts this object back to a builder.- Specified by:
toBuilderin interfaceNoiseFunction- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static MappedNoiseFunction of(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, double xzScale, double yScale, double minTarget, double maxTarget) Creates a new mapped noise function.- Parameters:
resourceKey- the resource key, or nullnoiseParameters- the noise parametersxzScale- the xz scaleyScale- the y scaleminTarget- the minimum target valuemaxTarget- the maximum target value- Returns:
- a new mapped noise function
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static MappedNoiseFunction of(NoiseParameters noiseParameters, double xzScale, double yScale, double minTarget, double maxTarget) Creates a new mapped noise function.- Parameters:
noiseParameters- the noise parametersxzScale- the xz scaleyScale- the y scaleminTarget- the minimum target valuemaxTarget- the maximum target value- Returns:
- a new mapped noise function
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-