Class AboveRootPlacement.Builder
java.lang.Object
dev.wyck.worldgen.feature.rootplacers.AboveRootPlacement.Builder
- Enclosing interface:
AboveRootPlacement
Builder for
AboveRootPlacement.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaboveRootPlacementChance(float aboveRootPlacementChance) Sets the probability of generating the block, between 0.0F and 1.0F (inclusive).aboveRootProvider(BlockStateProvider aboveRootProvider) Sets the block above the root.build()Builds the above root placement.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
aboveRootProvider
@AsOf("3.0.0") public AboveRootPlacement.Builder aboveRootProvider(BlockStateProvider aboveRootProvider) Sets the block above the root.- Parameters:
aboveRootProvider- the above root block state provider- Returns:
- this builder
- Since:
- 3.0.0
-
aboveRootPlacementChance
@AsOf("3.0.0") public AboveRootPlacement.Builder aboveRootPlacementChance(float aboveRootPlacementChance) Sets the probability of generating the block, between 0.0F and 1.0F (inclusive).- Parameters:
aboveRootPlacementChance- the above root placement chance- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the above root placement.- Returns:
- a new above root placement
- Since:
- 3.0.0
-