Class CanyonCarverConfiguration.Builder
java.lang.Object
dev.wyck.wrapper.worldgen.carver.CanyonCarverConfiguration.Builder
- Enclosing class:
CanyonCarverConfiguration
A builder for creating a CanyonCarverConfiguration. The debug settings
default to
CarverDebugSettings.defaultSettings() if left unset.- Since:
- 2.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the CanyonCarverConfiguration.debugSettings(CarverDebugSettings debugSettings) Sets the debug settings of the carver.lavaLevel(VerticalAnchor lavaLevel) Sets the lava level of the carver.probability(float probability) Sets the probability of the carver being generated.replaceable(Collection<Material> replaceable) Sets the replaceable materials of the carver.shape(CanyonShapeConfiguration shape) Sets the shape of the carver.verticalRotation(FloatProvider verticalRotation) Sets the vertical rotation of the carver.y(HeightProvider y) Sets the y-coordinate of the carver.yScale(FloatProvider yScale) Sets the y-scale of the carver.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
probability
Sets the probability of the carver being generated.- Parameters:
probability- the probability of the carver being generated, between 0 and 1- Returns:
- this builder, for chaining
- Since:
- 2.3.0
-
y
Sets the y-coordinate of the carver.- Parameters:
y- the y-coordinate of the carver- Returns:
- this builder, for chaining
-
yScale
Sets the y-scale of the carver.- Parameters:
yScale- the y-scale of the carver- Returns:
- this builder, for chaining
- Since:
- 2.3.0
-
lavaLevel
Sets the lava level of the carver.- Parameters:
lavaLevel- the lava level of the carver- Returns:
- this builder, for chaining
- Since:
- 2.3.0
-
debugSettings
@AsOf("2.3.0") public CanyonCarverConfiguration.Builder debugSettings(CarverDebugSettings debugSettings) Sets the debug settings of the carver.- Parameters:
debugSettings- the debug settings of the carver- Returns:
- this builder, for chaining
- Since:
- 2.3.0
-
replaceable
@AsOf("2.3.0") public CanyonCarverConfiguration.Builder replaceable(Collection<Material> replaceable) Sets the replaceable materials of the carver.- Parameters:
replaceable- the replaceable materials of the carver- Returns:
- this builder, for chaining
- Since:
- 2.3.0
-
verticalRotation
@AsOf("2.3.0") public CanyonCarverConfiguration.Builder verticalRotation(FloatProvider verticalRotation) Sets the vertical rotation of the carver.- Parameters:
verticalRotation- the vertical rotation of the carver- Returns:
- this builder, for chaining
- Since:
- 2.3.0
-
shape
Sets the shape of the carver.- Parameters:
shape- the shape of the carver- Returns:
- this builder, for chaining
- Since:
- 2.3.0
-
build
Builds the CanyonCarverConfiguration.- Returns:
- the CanyonCarverConfiguration
- Throws:
IllegalStateException- if any required fields are not set- Since:
- 2.3.0
-