Class ReplaceBlockConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.ReplaceBlockConfiguration.Builder
- Enclosing interface:
ReplaceBlockConfiguration
Builder for
ReplaceBlockConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration.target(OreConfiguration.TargetBlockState... targetStates) Adds multiple targets to the list.Adds a target to the list.targetStates(List<OreConfiguration.TargetBlockState> targetStates) Sets the list of targets.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
targetStates
@AsOf("3.0.0") public ReplaceBlockConfiguration.Builder targetStates(List<OreConfiguration.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 ReplaceBlockConfiguration.Builder target(OreConfiguration.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
-