Class CarverConfiguration.CarverConfigurationBuilder<T extends CarverConfiguration, B extends CarverConfiguration.CarverConfigurationBuilder<T,B> >
java.lang.Object
dev.wyck.worldgen.carver.CarverConfiguration.CarverConfigurationBuilder<T,B>
- Direct Known Subclasses:
CanyonCarverConfiguration.Builder, CaveCarverConfiguration.Builder
- Enclosing interface:
CarverConfiguration
@AsOf("3.0.0")
public abstract static class CarverConfiguration.CarverConfigurationBuilder<T extends CarverConfiguration, B extends CarverConfiguration.CarverConfigurationBuilder<T,B>>
extends Object
- Since:
- 2.3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable CarverDebugSettingsprotected @Nullable VerticalAnchorprotected floatprotected @Nullable HeightProviderprotected @Nullable FloatProvider -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedCarverConfigurationBuilder(CarverConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionfinal Tbuild()Builds the carver configuration.protected abstract Tcreate()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.replaceable(Set<Material> replaceable) Sets the materials that can be replaced by this carver.replaceable(Material... replaceable) Adds a material to the list of replaceable materials.y(HeightProvider y) Sets the y-level of the carver.yScale(FloatProvider yScale) Sets the y-scale of the carver.
-
Field Details
-
probability
protected float probability -
y
-
yScale
-
lavaLevel
-
debugSettings
-
replaceable
-
-
Constructor Details
-
CarverConfigurationBuilder
protected CarverConfigurationBuilder() -
CarverConfigurationBuilder
-
-
Method Details
-
probability
-
y
Sets the y-level of the carver.- Parameters:
y- the y-level of the carver- Returns:
- this builder
- Since:
- 3.0.0
-
yScale
Sets the y-scale of the carver.- Parameters:
yScale- the y-scale of the carver- Returns:
- this builder
- Since:
- 3.0.0
-
lavaLevel
Sets the lava level of the carver.- Parameters:
lavaLevel- the lava level of the carver- Returns:
- this builder
- Since:
- 3.0.0
-
debugSettings
Sets the debug settings of the carver.- Parameters:
debugSettings- the debug settings of the carver- Returns:
- this builder
- Since:
- 3.0.0
-
replaceable
-
replaceable
-
build
-
create
-