Class CanyonWorldCarver.Builder
java.lang.Object
dev.wyck.worldgen.carver.CanyonWorldCarver.Builder
- Enclosing interface:
CanyonWorldCarver
Builder for
CanyonWorldCarver.- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Builder(CanyonWorldCarver carver) Creates a builder containing the values of an existing canyon carver. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the canyon world carver.probability(float probability) Sets the probability that the carver starts in an eligible chunk.shape(CanyonWorldCarver.Shape shape) Sets the settings used to shape the canyon.verticalRotation(FloatProvider verticalRotation) Sets the vertical rotation applied to the canyon.y(HeightProvider y) Sets the provider used to select the starting y-coordinate.
-
Constructor Details
-
Builder
public Builder() -
Builder
Creates a builder containing the values of an existing canyon carver.- Parameters:
carver- the canyon carver to copy- Since:
- 4.0.0
-
-
Method Details
-
probability
Sets the probability that the carver starts in an eligible chunk.- Parameters:
probability- the carver start probability- Returns:
- this builder
- Since:
- 4.0.0
-
y
Sets the provider used to select the starting y-coordinate.- Parameters:
y- the starting height provider- Returns:
- this builder
- Since:
- 4.0.0
-
verticalRotation
Sets the vertical rotation applied to the canyon.- Parameters:
verticalRotation- the canyon's vertical rotation- Returns:
- this builder
- Since:
- 4.0.0
-
shape
Sets the settings used to shape the canyon.- Parameters:
shape- the canyon shape- Returns:
- this builder
- Since:
- 4.0.0
-
build
Builds the canyon world carver.- Returns:
- the canyon world carver
- Since:
- 4.0.0
-