Interface DensityFunction.Factory
- Enclosing interface:
DensityFunction
@Internal
public static interface DensityFunction.Factory
- Since:
- 2.4.0
-
Method Summary
Modifier and TypeMethodDescriptionblendDensity(DensityFunction input) cache(DensityFunction.Cache cache, DensityFunction input) clamp(DensityFunction input, double min, double max) constant(double value) endIslands(long seed) findTopSurface(DensityFunction density, DensityFunction upperBound, int lowerBound, int cellHeight) mappedNoise(ResourceKey noiseParameters, double xzScale, double yScale, double minTarget, double maxTarget) noise(ResourceKey noiseParameters, double xzScale, double yScale) operation(DensityFunction.Operation operation, DensityFunction first, DensityFunction second) rangeChoice(DensityFunction input, double minInclusive, double maxExclusive, DensityFunction whenInRange, DensityFunction whenOutOfRange) reference(ResourceKey key) shift(DensityFunction.ShiftKind kind, ResourceKey noiseParameters) shiftedNoise2d(DensityFunction shiftX, DensityFunction shiftZ, double xzScale, ResourceKey noiseParameters) transform(DensityFunction.Transform transform, DensityFunction input) yClampedGradient(int fromY, int toY, double fromValue, double toValue) zero()
-
Method Details
-
reference
-
constant
-
zero
DensityFunction zero() -
operation
DensityFunction operation(DensityFunction.Operation operation, DensityFunction first, DensityFunction second) -
transform
-
clamp
-
cache
-
noise
-
mappedNoise
DensityFunction mappedNoise(ResourceKey noiseParameters, double xzScale, double yScale, double minTarget, double maxTarget) -
shift
-
shiftedNoise2d
DensityFunction shiftedNoise2d(DensityFunction shiftX, DensityFunction shiftZ, double xzScale, ResourceKey noiseParameters) -
rangeChoice
DensityFunction rangeChoice(DensityFunction input, double minInclusive, double maxExclusive, DensityFunction whenInRange, DensityFunction whenOutOfRange) -
yClampedGradient
-
endIslands
-
blendDensity
-
blendAlpha
DensityFunction blendAlpha() -
blendOffset
DensityFunction blendOffset() -
findTopSurface
DensityFunction findTopSurface(DensityFunction density, DensityFunction upperBound, int lowerBound, int cellHeight)
-