Class PlacedFeature.Builder
java.lang.Object
dev.wyck.worldgen.placement.PlacedFeature.Builder
- Enclosing interface:
PlacedFeature
Builder for
PlacedFeature.- Since:
- 2.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the placed feature.feature(ConfiguredFeature feature) Sets the feature to be placed.feature(CustomFeature<C> customFeature, C config) Sets the feature to be placed.modifier(PlacementModifier placement) Adds a placement modifier to the list of modifiers.modifier(PlacementModifier... placements) Adds placement modifiers to the list of modifiers.modifiers(List<PlacementModifier> placements) Sets a list of placement modifiers to the list of modifiers.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
feature
Sets the feature to be placed.- Parameters:
feature- the feature to be placed- Returns:
- this builder
- Since:
- 2.3.0
-
modifiers
Sets a list of placement modifiers to the list of modifiers.- Parameters:
placements- the placement modifiers to set- Returns:
- this builder
- Since:
- 2.3.0
-
feature
Sets the feature to be placed.- Type Parameters:
C- the config type- Parameters:
customFeature- the feature to be placedconfig- the config for the feature- Returns:
- this builder
- Since:
- 3.0.0
-
modifier
Adds placement modifiers to the list of modifiers.- Parameters:
placements- the placement modifiers to add- Returns:
- this builder
- Since:
- 3.0.0
-
modifier
Adds a placement modifier to the list of modifiers.- Parameters:
placement- the placement modifier to add- Returns:
- this builder
- Since:
- 2.3.0
-
build
Builds the placed feature.- Returns:
- the placed feature
- Since:
- 2.3.0
-