Class YClampedGradient.Builder
java.lang.Object
dev.wyck.worldgen.function.misc.YClampedGradient.Builder
- Enclosing interface:
YClampedGradient
Builder for
YClampedGradient.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the y clamped gradient density function.fromValue(double fromValue) Sets the value thatfromYmaps to.fromY(int fromY) Sets the Y coordinate that maps tofromValue.resourceKey(ResourceKey resourceKey) Sets the resource key.toValue(double toValue) Sets the value thattoYmaps to.toY(int toY) Sets the Y coordinate that maps totoValue.
-
Method Details
-
resourceKey
Sets the resource key.- Parameters:
resourceKey- the resource key- Returns:
- this builder
- Since:
- 3.0.0
-
fromY
Sets the Y coordinate that maps tofromValue.- Parameters:
fromY- the lower Y coordinate- Returns:
- this builder
- Since:
- 3.0.0
-
toY
Sets the Y coordinate that maps totoValue.- Parameters:
toY- the upper Y coordinate- Returns:
- this builder
- Since:
- 3.0.0
-
fromValue
Sets the value thatfromYmaps to.- Parameters:
fromValue- the lower value- Returns:
- this builder
- Since:
- 3.0.0
-
toValue
Sets the value thattoYmaps to.- Parameters:
toValue- the upper value- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the y clamped gradient density function.- Returns:
- the y clamped gradient density function
- Since:
- 3.0.0
-