Class ReplaceBlockFeature.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.ReplaceBlockFeature.Builder
- Enclosing interface:
ReplaceBlockFeature
Builder for
ReplaceBlockFeature.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration.target(OreFeature.TargetBlockState... targetStates) Adds multiple targets to the list.Adds a target to the list.targetStates(List<OreFeature.TargetBlockState> targetStates) Sets the list of targets.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
targetStates
@AsOf("3.0.0") public ReplaceBlockFeature.Builder targetStates(List<OreFeature.TargetBlockState> targetStates) Sets the list of targets.- Parameters:
targetStates- the list of targets- Returns:
- this builder
- Since:
- 3.0.0
-
target
Adds a target to the list.- Parameters:
target- the target to addstate- the state to replace with- Returns:
- this builder
- Since:
- 3.0.0
-
target
@AsOf("3.0.0") public ReplaceBlockFeature.Builder target(OreFeature.TargetBlockState... targetStates) Adds multiple targets to the list.- Parameters:
targetStates- the targets to add- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the configuration.- Returns:
- the configuration
- Since:
- 3.0.0
-