Interface ShiftedNoise2dFunction
- All Superinterfaces:
DensityFunction, Keyed, NoiseParameterFunction, Registerable<NoiseParameterFunction>, Wrapper
Wraps shifted noise 2d density functions.
- Since:
- 3.0.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.static ShiftedNoise2dFunctionof(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, DensityFunction shiftX, DensityFunction shiftZ, double xzScale) Creates a new shifted noise 2d density function.static ShiftedNoise2dFunctionof(NoiseParameters noiseParameters, DensityFunction shiftX, DensityFunction shiftZ, double xzScale) Creates a new shifted noise 2d density function.shiftX()Shift x density function.shiftZ()Shift z density function.default ShiftedNoise2dFunction.BuilderConverts this object back to a builder.doublexzScale()Scale factor for x and z.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
-
shiftX
Shift x density function.- Returns:
- the shift x density function
- Since:
- 3.0.0
-
shiftZ
Shift z density function.- Returns:
- the shift z density function
- Since:
- 3.0.0
-
xzScale
double xzScale()Scale factor for x and z.- Returns:
- the scale factor
- Since:
- 3.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 ShiftedNoise2dFunction of(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, DensityFunction shiftX, DensityFunction shiftZ, double xzScale) Creates a new shifted noise 2d density function.- Parameters:
resourceKey- the resource key, or nullnoiseParameters- the noise parametersshiftX- the shift x density functionshiftZ- the shift z density functionxzScale- the scale factor for x and z- Returns:
- a new shifted noise 2d density function
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static ShiftedNoise2dFunction of(NoiseParameters noiseParameters, DensityFunction shiftX, DensityFunction shiftZ, double xzScale) Creates a new shifted noise 2d density function.- Parameters:
noiseParameters- the noise parametersshiftX- the shift x density functionshiftZ- the shift z density functionxzScale- the scale factor for x and z- Returns:
- a new shifted noise 2d density function
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-