Class OceanRuinStructure.Builder
java.lang.Object
dev.wyck.worldgen.structure.types.OceanRuinStructure.Builder
- Enclosing interface:
OceanRuinStructure
Builder for
OceanRuinStructure.- Since:
- 3.4.0
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(StructureSettings settings, OceanRuinStructure.BiomeTemperature biomeTemperature) Builder(OceanRuinStructure structure) -
Method Summary
Modifier and TypeMethodDescriptionbiomeTemperature(OceanRuinStructure.BiomeTemperature biomeTemperature) Sets the template set the ruin is drawn from.build()Builds the ocean ruin.clusterProbability(float clusterProbability) Sets the chance that a large ruin is surrounded by smaller ones.largeProbability(float largeProbability) Sets the chance that the ruin is a large one.resourceKey(ResourceKey resourceKey) Sets the resource key of the structure.settings(StructureSettings settings) Sets the settings every structure carries.
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
resourceKey
Sets the resource key of the structure.- Parameters:
resourceKey- the resource key of the structure- Returns:
- this builder
- Since:
- 3.4.0
-
settings
Sets the settings every structure carries.- Parameters:
settings- the settings of the structure- Returns:
- this builder
- Since:
- 3.4.0
-
biomeTemperature
@AsOf("3.4.0") public OceanRuinStructure.Builder biomeTemperature(OceanRuinStructure.BiomeTemperature biomeTemperature) Sets the template set the ruin is drawn from.- Parameters:
biomeTemperature- the biome temperature- Returns:
- this builder
- Since:
- 3.4.0
-
largeProbability
Sets the chance that the ruin is a large one.- Parameters:
largeProbability- the large ruin probability, from 0 to 1- Returns:
- this builder
- Since:
- 3.4.0
-
clusterProbability
Sets the chance that a large ruin is surrounded by smaller ones.- Parameters:
clusterProbability- the cluster probability, from 0 to 1- Returns:
- this builder
- Since:
- 3.4.0
-
build
Builds the ocean ruin.- Returns:
- the ocean ruin
- Since:
- 3.4.0
-