Interface ClampedTransformer
- All Superinterfaces:
DensityFunction, Keyed, PureTransformer, Registerable<PureTransformer>, Wrapper
Clamps the input between two values.
- Since:
- 3.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondoublemax()The maximum value.doublemin()The minimum value.static ClampedTransformerof(@Nullable ResourceKey resourceKey, DensityFunction input, double min, double max) Creates a new clamped density function.static ClampedTransformerof(DensityFunction input, double min, double max) Creates a new clamped density 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 PureTransformer
inputMethods inherited from interface Registerable
registerMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
min
-
max
-
of
@AsOf("3.0.0") static ClampedTransformer of(@Nullable ResourceKey resourceKey, DensityFunction input, double min, double max) Creates a new clamped density function.- Parameters:
resourceKey- the resource key, or nullinput- the input density functionmin- the minimum valuemax- the maximum value- Returns:
- the clamped density function
- Since:
- 3.0.0
-
of
Creates a new clamped density function.- Parameters:
input- the input density functionmin- the minimum valuemax- the maximum value- Returns:
- the clamped density function
- Since:
- 3.0.0
-