Class LakeFeatureConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.LakeFeatureConfiguration.Builder
- Enclosing interface:
LakeFeatureConfiguration
Builder for
LakeFeatureConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbarrier(BlockStateProvider barrier) Sets the barrier provider.build()Builds the configuration.canPlaceOn(BlockPredicate canPlaceOn) Sets the predicate describing the block that the feature can be placed on.canReplaceWithAirOrFluid(BlockPredicate canReplaceWithAirOrFluid) Sets the predicate describing the block that the feature can replace with air or the providedfluidblock.canReplaceWithBarrier(BlockPredicate canReplaceWithBarrier) Sets the predicate describing the block that the feature can replace with the providedbarrierblock.fluid(BlockStateProvider fluid) Sets the fluid provider.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
fluid
Sets the fluid provider.- Parameters:
fluid- the fluid provider- Returns:
- this builder
- Since:
- 3.0.0
-
barrier
Sets the barrier provider.- Parameters:
barrier- the barrier provider- Returns:
- this builder
- Since:
- 3.0.0
-
canPlaceOn
Sets the predicate describing the block that the feature can be placed on.- Parameters:
canPlaceOn- the placement predicate- Returns:
- this builder
- Since:
- 3.0.0
-
canReplaceWithAirOrFluid
@AsOf("3.0.0") public LakeFeatureConfiguration.Builder canReplaceWithAirOrFluid(BlockPredicate canReplaceWithAirOrFluid) Sets the predicate describing the block that the feature can replace with air or the providedfluidblock.- Parameters:
canReplaceWithAirOrFluid- the predicate- Returns:
- this builder
- Since:
- 3.0.0
-
canReplaceWithBarrier
@AsOf("3.0.0") public LakeFeatureConfiguration.Builder canReplaceWithBarrier(BlockPredicate canReplaceWithBarrier) Sets the predicate describing the block that the feature can replace with the providedbarrierblock.- Parameters:
canReplaceWithBarrier- the predicate- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the configuration.- Returns:
- the configuration
- Since:
- 3.0.0
-