Interface ShiftedFunction
- All Superinterfaces:
DensityFunction, Keyed, NoiseParameterFunction, Registerable<NoiseParameterFunction>, Wrapper
A noise function that has a shift.
- Since:
- 3.0.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionkind()The kind of shift.static ShiftedFunctionof(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, ShiftedFunction.Kind kind) Creates a new shifted function.static ShiftedFunctionof(NoiseParameters noiseParameters, ShiftedFunction.Kind kind) Creates a new shifted function.static ShiftedFunctionshift(NoiseParameters noiseParameters) Samples a noise at (x/4, y/4, z/4), then multiplies it by 4.static ShiftedFunctionshiftA(NoiseParameters noiseParameters) Samples a noise at (x/4, 0, z/4), then multiplies it by 4.static ShiftedFunctionshiftB(NoiseParameters noiseParameters) Samples a noise at (z/4, x/4, 0), then multiplies it by 4.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
-
kind
The kind of shift.- Returns:
- the kind of shift
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static ShiftedFunction of(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, ShiftedFunction.Kind kind) Creates a new shifted function.- Parameters:
resourceKey- the resource key, or nullnoiseParameters- the noise parameterskind- the kind of shift- Returns:
- the shifted function
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static ShiftedFunction of(NoiseParameters noiseParameters, ShiftedFunction.Kind kind) Creates a new shifted function.- Parameters:
noiseParameters- the noise parameterskind- the kind of shift- Returns:
- the shifted function
- Since:
- 3.0.0
-
shift
Samples a noise at (x/4, y/4, z/4), then multiplies it by 4.- Parameters:
noiseParameters- the noise parameters- Returns:
- the shifted function
- Since:
- 3.0.0
-
shiftA
Samples a noise at (x/4, 0, z/4), then multiplies it by 4.- Parameters:
noiseParameters- the noise parameters- Returns:
- the shifted function
- Since:
- 3.0.0
-
shiftB
Samples a noise at (z/4, x/4, 0), then multiplies it by 4.- Parameters:
noiseParameters- the noise parameters- Returns:
- the shifted function
- Since:
- 3.0.0
-