Class UnderwaterMagmaConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.UnderwaterMagmaConfiguration.Builder
- Enclosing interface:
UnderwaterMagmaConfiguration
Builder for
UnderwaterMagmaConfiguration.- Since:
- 3.0.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the underwater magma configuration.floorSearchRange(int floorSearchRange) Sets how far down the feature searches for a floor.placementProbabilityPerValidPosition(float placementProbabilityPerValidPosition) Sets the chance of placing magma at each valid position.placementRadiusAroundFloor(int placementRadiusAroundFloor) Sets the radius around the found floor in which magma may be placed.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
floorSearchRange
Sets how far down the feature searches for a floor.- Parameters:
floorSearchRange- the floor search range, between 0 and 512- Returns:
- this builder
- Since:
- 3.0.1
-
placementRadiusAroundFloor
@AsOf("3.0.1") public UnderwaterMagmaConfiguration.Builder placementRadiusAroundFloor(int placementRadiusAroundFloor) Sets the radius around the found floor in which magma may be placed.- Parameters:
placementRadiusAroundFloor- the placement radius, between 0 and 64- Returns:
- this builder
- Since:
- 3.0.1
-
placementProbabilityPerValidPosition
@AsOf("3.0.1") public UnderwaterMagmaConfiguration.Builder placementProbabilityPerValidPosition(float placementProbabilityPerValidPosition) Sets the chance of placing magma at each valid position.- Parameters:
placementProbabilityPerValidPosition- the placement probability, between 0.0 and 1.0- Returns:
- this builder
- Since:
- 3.0.1
-
build
Builds the underwater magma configuration.- Returns:
- the underwater magma configuration
- Since:
- 3.0.1
-