Class RandomOffsetPlacement.Builder
java.lang.Object
dev.wyck.worldgen.placement.RandomOffsetPlacement.Builder
- Enclosing interface:
RandomOffsetPlacement
Builder for
RandomOffsetPlacement.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the random offset placement.xzSpread(IntProvider xzSpread) Sets the horizontal spread provider.ySpread(IntProvider ySpread) Sets the vertical spread provider.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
xzSpread
Sets the horizontal spread provider.- Parameters:
xzSpread- the offset applied to both the X and Z axes, between -16 and 16 (inclusive)- Returns:
- this builder
- Since:
- 3.0.0
-
ySpread
Sets the vertical spread provider.- Parameters:
ySpread- the offset applied to the Y axis, between -16 and 16 (inclusive)- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the random offset placement.- Returns:
- the random offset placement
- Since:
- 3.0.0
-